/* Natteu — Encre, ivoire & cuivre. Shared visual tokens, no remote font. */
:root {
  color-scheme: light;
  --ink: #172b3a;
  --muted: #626b70;
  --accent: #985638;
  --accent-soft: #f1e5da;
  --sage: #4b6a60;
  --sage-soft: #e8eee8;
  --paper: #f6f3ec;
  --white: #fffefa;
  --line: #deded5;
  --deep: #172b3a;
  --radius: 16px;
  --serif: Georgia, "Times New Roman", serif;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
  text-underline-offset: 4px;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.5;
}
button,
input,
select {
  border-radius: 8px;
}
:where(button, a, input, select):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}
button svg {
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  line-height: 1.15;
}
h1,
h2 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(34px, 3.5vw, 52px);
  margin-bottom: 16px;
}
h2 {
  font-size: 27px;
}
h3 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: -0.035em;
}
p {
  line-height: 1.7;
}
svg {
  vertical-align: middle;
}
::selection {
  background: #e8c7ae;
  color: var(--ink);
}
.muted {
  color: var(--muted);
}
.eyebrow,
.nav-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 650;
  display: block;
}
.eyebrow {
  color: var(--accent);
  margin-bottom: 18px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -1.5px;
  font-size: 32px;
}
.brand img {
  border-radius: 10px;
}
.beta {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 9px;
  letter-spacing: 0.08em;
  font-weight: 500;
  align-self: flex-start;
  margin-top: 6px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
}
.button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 21px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  transition:
    background 0.18s,
    box-shadow 0.18s;
}
.primary {
  background: var(--ink);
  color: #fffefa;
}
.primary:not(:disabled):hover {
  background: #294657;
  box-shadow: 0 4px 12px #172b3a12;
}
.secondary {
  border: 1px solid #cccfc9;
  background: transparent;
  color: var(--ink);
}
.secondary:not(:disabled):hover {
  background: #edeae2;
}
.full {
  width: 100%;
}
.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  font-size: 12px;
  min-height: 44px;
  padding: 10px 0;
  text-decoration: none;
}
.text-button:hover {
  text-decoration: underline;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  background: transparent;
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  color: var(--muted);
}
.icon-button:hover {
  background: #eae8df;
  color: var(--ink);
}
label {
  display: flex;
  flex-direction: column;
  font-size: 12px;
  font-weight: 550;
  gap: 8px;
  margin-bottom: 22px;
}
input,
select {
  background: var(--white);
  border: 1px solid #cdd0ca;
  min-width: 0;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--ink);
  width: 100%;
}
input::placeholder {
  color: #737b7c;
}
input[readonly] {
  background: #eeede6;
}
.field-help {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: -10px;
}
.form-error {
  font-size: 13px;
  color: #a0372b;
  line-height: 1.6;
}
.form-error:empty {
  display: none;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  transform: translateY(-200%);
  z-index: 30;
  background: var(--white);
  padding: 12px;
}
.skip-link:focus {
  transform: translateY(0);
}
.initial {
  padding: 15vh 10vw;
  text-align: center;
}
.initial img {
  display: block;
  margin: 0 auto 20px;
  width: 70px;
}

/* A quiet, editorial entrance. The circle is the visual signature. */
.welcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
}
.welcome-story {
  background: var(--ink);
  color: var(--paper);
  padding: 44px 64px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.welcome-story .beta {
  color: #c0cbc9;
  border-color: #4e5e65;
}
.story-copy {
  margin: auto 0;
  max-width: 490px;
  padding: 52px 0 30px;
}
.story-copy h1 {
  font-size: clamp(42px, 4.5vw, 68px);
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin-bottom: 24px;
}
.story-copy h1 em {
  color: #dfb797;
  font-weight: 400;
}
.story-copy > p {
  max-width: 355px;
  color: #c4cdcc;
  font-size: 14px;
}
.story-copy .eyebrow {
  color: #dfb797;
  font-size: 9px;
  margin-bottom: 28px;
}
.story-copy .story-footnote {
  font-size: 11px;
  line-height: 1.7;
  margin-top: 26px;
  margin-bottom: 0;
}
.welcome-story footer {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: #b9c4c4;
}
.welcome-story footer span {
  margin-left: auto;
}
.welcome-story footer a {
  text-decoration: none;
}
.welcome-story footer a:hover {
  text-decoration: underline;
}
.circle-art {
  display: block;
  width: min(100%, 360px);
  height: auto;
  margin: 20px 0 8px;
  overflow: visible;
}
.welcome-form {
  padding: 64px 48px;
  display: grid;
  place-items: center;
}
.auth-card {
  width: 100%;
  max-width: 380px;
}
.auth-card h2 {
  font-size: 36px;
  margin-bottom: 16px;
}
.auth-card > .muted {
  font-size: 14px;
  margin-bottom: 32px;
}
.auth-card .eyebrow {
  font-size: 9px;
}
.segmented {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
  gap: 24px;
}
.segmented button {
  flex: 1;
  border-radius: 0;
  font-size: 13px;
  background: transparent;
  padding: 13px 0;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.segmented button[aria-pressed="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.auth-privacy {
  font-size: 11px;
  color: var(--muted);
  margin-top: 24px;
}
.auth-privacy a {
  color: var(--accent);
}

/* Workspace */
.shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 224px;
  border-right: 1px solid var(--line);
  background: #eeece4;
  display: flex;
  flex-direction: column;
  padding: 36px 22px;
}
.sidebar .brand {
  margin-bottom: 60px;
}
.nav-label {
  font-size: 9px;
  color: var(--muted);
  margin-left: 12px;
  margin-bottom: 14px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 13px;
  padding: 14px;
  border-radius: 8px;
}
.nav-item.active {
  background: var(--ink);
  color: var(--paper);
  font-weight: 500;
}
.side-note {
  margin-top: auto;
  padding: 24px 12px 36px;
  color: var(--muted);
}
.tiny-dots {
  display: block;
  letter-spacing: 5px;
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 12px;
}
.side-note strong {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.04em;
  color: var(--ink);
}
.side-note p {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 10px;
  margin-bottom: 0;
}
.side-footer {
  border-top: 1px solid var(--line);
  padding: 20px 12px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 10px;
}
.side-footer a {
  text-decoration: none;
}
.side-footer a:hover {
  text-decoration: underline;
}
.side-footer > span {
  width: 100%;
  font-size: 10px;
}
.workspace {
  margin-left: 224px;
  width: calc(100% - 224px);
  min-width: 0;
}
.topbar {
  height: 86px;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 0 48px;
}
.topbar-label {
  color: var(--muted);
  font-size: 12px;
}
.account-button {
  display: flex;
  gap: 10px;
  align-items: center;
  background: transparent;
  font-size: 12px;
  color: var(--ink);
  padding: 5px;
  min-height: 44px;
}
.avatar {
  border-radius: 50%;
  background: var(--accent-soft);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}
.avatar.large {
  width: 64px;
  height: 64px;
  font-size: 22px;
  margin: 0 auto 18px;
}
.workspace main {
  max-width: 1320px;
  padding: 52px 48px 64px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 28px;
  margin-bottom: 36px;
}
.page-heading .eyebrow {
  font-size: 9px;
  margin-bottom: 16px;
}
.page-heading .muted {
  font-size: 13px;
  margin-bottom: 0;
  max-width: 510px;
}
.page-heading .button {
  flex-shrink: 0;
}
.heading-dot {
  color: var(--accent);
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 0;
  margin-bottom: 42px;
}
.stats > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  column-gap: 16px;
  align-items: center;
  padding: 0 26px;
  border-right: 1px solid var(--line);
}
.stats > div:last-child {
  border: 0;
}
.stat-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9edef;
  color: var(--ink);
  grid-row: span 2;
}
.stat-icon.amber {
  background: var(--accent-soft);
  color: var(--accent);
}
.stat-icon.blue {
  background: var(--sage-soft);
  color: var(--sage);
}
.stat-number {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.04em;
  font-weight: 400;
  line-height: 1.1;
  font-variant-numeric: lining-nums tabular-nums;
}
.stats > div > span:last-child {
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-heading h2 {
  font-size: 27px;
  margin: 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}
.tontine-card {
  display: block;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  text-decoration: none;
  transition:
    box-shadow 0.18s,
    border-color 0.18s;
}
.tontine-card:hover {
  border-color: #af9b85;
  box-shadow: 0 6px 22px #172b3a08;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
  gap: 12px;
}
.group-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e9edef;
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  border-radius: 30px;
  font-size: 10px;
  font-weight: 500;
  padding: 6px 10px;
  letter-spacing: 0.01em;
}
.pill.amber {
  color: var(--accent);
  background: var(--accent-soft);
}
.pill.green {
  color: var(--sage);
  background: var(--sage-soft);
}
.pill::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  margin-right: 6px;
}
.tontine-card h3 {
  font-size: 21px;
  line-height: 1.3;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.tontine-card .muted {
  font-size: 12px;
}
.card-amount {
  font-size: 29px;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  padding: 10px 0 24px;
}
.card-amount span,
.join-amount span {
  display: block;
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  margin-top: 7px;
}
.card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line);
  padding-top: 19px;
  font-size: 11px;
  color: var(--muted);
  gap: 12px;
}
.card-bottom svg {
  flex-shrink: 0;
  color: var(--accent);
}
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
  padding: 60px 25px;
  background: var(--white);
}
.empty-orbit {
  width: 88px;
  height: 88px;
  border: 1px solid #b7a18b;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  color: var(--accent);
}
.empty-state p {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 26px;
}
.empty-state > .text-button {
  display: block;
  margin: 15px auto 0;
}
.back-link {
  display: inline-flex;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  margin-bottom: 28px;
  padding: 8px 0;
}
.back-link:hover {
  text-decoration: underline;
}
.detail-heading h1 {
  overflow-wrap: anywhere;
}
.detail-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--ink);
  border-radius: var(--radius);
  padding: 32px;
  color: var(--paper);
  gap: 26px;
  margin-bottom: 28px;
}
.detail-summary > div {
  border-right: 1px solid #4b5e69;
  padding-right: 20px;
}
.detail-summary > div:last-child {
  border: 0;
  padding-right: 0;
}
.detail-summary span {
  display: block;
  font-size: 11px;
  color: #c2cdce;
  margin-bottom: 12px;
}
.detail-summary strong {
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
}
.detail-summary small {
  font-size: 14px;
  font-weight: 400;
}
.detail-grid,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(250px, 1fr);
  gap: 24px;
  align-items: start;
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.panel h2 {
  font-size: 26px;
}
.members {
  list-style: none;
  padding: 0;
  margin: 0;
}
.members li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.members li:last-child {
  border: 0;
  padding-bottom: 0;
}
.members li > div {
  min-width: 0;
  flex: 1;
}
.members strong {
  font-weight: 550;
  overflow-wrap: anywhere;
}
.members small,
.member-info > span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}
.member-email {
  max-width: 42%;
  overflow-wrap: anywhere;
  font-size: 11px;
  color: var(--muted);
  text-align: right;
}
.you,
.count-badge {
  font-size: 10px;
  background: var(--sage-soft);
  color: var(--sage);
  border-radius: 4px;
  padding: 3px 6px;
  font-weight: 500;
}
.you {
  margin-left: 5px;
}
.turn-number {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #e9edef;
  color: var(--ink);
  font-weight: 600;
}
.my-turn {
  border: 1px solid #cbd8cc;
  background: var(--sage-soft);
  border-radius: 12px;
  padding: 20px;
  margin: 0 0 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
}
.my-turn > div > span {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--sage);
}
.my-turn h2 {
  font-size: 25px;
  margin: 8px 0;
}
.my-turn p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}
.action-panel .group-icon {
  margin-bottom: 26px;
}
.action-panel p {
  color: var(--muted);
  font-size: 13px;
}
.action-panel .button {
  margin-bottom: 12px;
}
.action-panel .field-help {
  margin-top: 0;
}
.quiet-note {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.7;
}
.quiet-note svg {
  flex-shrink: 0;
}
.join-card {
  max-width: 480px;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  margin: 20px auto;
}
.join-card h1 {
  font-size: 36px;
  overflow-wrap: anywhere;
}
.join-card > .muted {
  font-size: 13px;
}
.join-amount {
  font-size: 34px;
  letter-spacing: -0.04em;
  font-weight: 450;
  margin: 28px 0;
}
.join-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  margin-bottom: 28px;
  gap: 16px;
}
.join-details dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}
.join-details dd {
  margin: 0;
  font-size: 13px;
}

/* Forms, account & notifications */
.modal {
  padding: 32px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  width: 480px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 40px);
  box-shadow: 0 24px 80px #101f2c26;
}
.modal::backdrop {
  background: #10212f66;
  backdrop-filter: blur(4px);
}
.modal-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.modal-heading h2 {
  font-size: 30px;
  margin: 0;
}
.modal-heading .icon-button {
  flex-shrink: 0;
}
.modal > p {
  font-size: 13px;
}
.modal .form-row {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 16px;
}
.account-summary {
  text-align: center;
  padding: 16px 0;
}
.account-summary h3 {
  margin-bottom: 8px;
}
.account-summary p {
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.account-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 12px;
  margin-bottom: 26px;
}
#notice {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: var(--paper);
  border-radius: 10px;
  box-shadow: 0 5px 25px #172b3a20;
  padding: 15px 22px;
  font-size: 13px;
  max-width: calc(100vw - 30px);
  width: max-content;
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
}
#notice.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.mobile-brand,
.mobile-footer {
  display: none;
}
.notification-button {
  position: relative;
  margin-left: auto;
}
.notification-count {
  position: absolute;
  top: -2px;
  right: -3px;
  min-width: 18px;
  padding: 1px 4px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  line-height: 17px;
}
.notification-count[hidden] {
  display: none;
}
.notification-tools {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 20px 0;
}
.notification-list {
  list-style: none;
  padding: 0;
  max-height: 50vh;
  overflow: auto;
}
.notification-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 13px;
}
.notification-item.unread {
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
}
.notification-item span span,
.notification-item small {
  display: block;
  margin-top: 5px;
}
.notification-item small {
  color: var(--muted);
  font-size: 11px;
}
.notification-item svg {
  flex-shrink: 0;
}
.checkbox-label {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  min-height: 44px;
  font-size: 13px;
}
.checkbox-label input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  accent-color: var(--accent);
  flex-shrink: 0;
}

@media (min-width: 1550px) {
  .welcome-story {
    padding-left: max(64px, calc((100vw - 1300px) / 2));
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 200px;
    padding: 30px 16px;
  }
  .workspace {
    margin-left: 200px;
    width: calc(100% - 200px);
  }
  .workspace main {
    padding: 40px 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .detail-grid,
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .stats > div {
    padding: 0 18px;
    grid-template-columns: 1fr;
  }
  .stat-icon {
    margin-bottom: 12px;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .button {
    margin-top: 20px;
  }
  .welcome-story {
    padding: 36px;
  }
  .welcome-form {
    padding: 48px 36px;
  }
  .welcome-story footer {
    gap: 12px;
    flex-wrap: wrap;
  }
  .welcome-story footer span {
    width: 100%;
    margin-left: 0;
  }
}
@media (max-width: 760px) {
  .sidebar {
    display: none;
  }
  .workspace {
    margin: 0;
    width: 100%;
  }
  .topbar {
    padding: 0 22px;
    height: 76px;
    gap: 12px;
  }
  .topbar-label,
  .account-button > span:last-child {
    display: none;
  }
  .mobile-brand {
    display: flex;
    font-size: 29px;
  }
  .mobile-footer {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 24px;
    font-size: 11px;
    color: var(--muted);
  }
  .workspace main {
    padding: 34px 22px 40px;
  }
  .page-heading {
    display: block;
    margin-bottom: 28px;
  }
  .page-heading > .button {
    margin-top: 24px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .page-heading h1 {
    font-size: 42px;
  }
  .stats {
    padding: 20px 0;
    margin-bottom: 30px;
  }
  .stats > div {
    padding: 0 14px;
    gap: 0;
    align-content: start;
  }
  .stat-icon {
    width: 34px;
    height: 34px;
  }
  .stat-number {
    font-size: 30px;
  }
  .stats > div > span:last-child {
    font-size: 11px;
    line-height: 1.5;
  }
  .cards {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
  }
  .tontine-card {
    padding: 24px;
  }
  .empty-state {
    padding: 38px 22px;
  }
  .empty-state h2 {
    font-size: 28px;
  }
  .detail-heading > .pill {
    margin-top: 18px;
  }
  .detail-summary {
    padding: 24px;
    gap: 22px;
    grid-template-columns: 1fr 1fr;
  }
  .detail-summary > div {
    border: none;
    padding: 0;
  }
  .detail-summary > div:last-child {
    grid-column: span 2;
    border-top: 1px solid #4b5e69;
    padding-top: 18px;
  }
  .detail-summary > div:last-child strong {
    font-size: 23px;
  }
  .detail-summary strong {
    font-size: clamp(20px, 4vw, 28px);
  }
  .panel {
    padding: 24px;
  }
  .join-card {
    margin: 0 auto;
    padding: 28px 22px;
  }
  .welcome {
    display: block;
  }
  .welcome-story {
    padding: 24px;
  }
  .welcome-story .brand {
    font-size: 29px;
  }
  .welcome-story .brand img {
    width: 34px;
    height: 34px;
  }
  .story-copy {
    padding: 34px 0 10px;
    max-width: none;
  }
  .story-copy .eyebrow {
    font-size: 8px;
    margin-bottom: 16px;
  }
  .story-copy h1 {
    font-size: 43px;
    margin-bottom: 18px;
  }
  .story-copy > p {
    font-size: 13px;
    max-width: 370px;
    margin-bottom: 0;
  }
  .circle-art,
  .story-footnote,
  .welcome-story footer {
    display: none;
  }
  .welcome-form {
    padding: 38px 24px 40px;
  }
  .auth-card {
    max-width: 430px;
  }
  .auth-card h2 {
    font-size: 32px;
  }
  .auth-card > .muted {
    margin-bottom: 24px;
  }
  .auth-card .eyebrow {
    font-size: 8px;
  }
  .modal {
    padding: 24px;
  }
  .modal-heading h2 {
    font-size: 27px;
  }
  input,
  select {
    font-size: 16px;
  }
}
@media (max-width: 380px) {
  .workspace main {
    padding-inline: 16px;
  }
  .stats > div {
    padding-inline: 10px;
  }
  .stats > div > span:last-child {
    font-size: 10px;
  }
  .member-email {
    display: none;
  }
  .modal .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

.succession-panel{margin-bottom:24px}.succession-panel .actions{display:flex;gap:12px;flex-wrap:wrap}.succession-group{padding:20px 0;border-bottom:1px solid var(--line,#ddd)}.succession-group:last-of-type{margin-bottom:24px}
