:root {
  color-scheme: light;
}
.appearance-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
}
.appearance-button svg {
  width: 20px;
  height: 20px;
}
#mobileAppearance small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.appearance-options {
  margin: 24px 0 0;
  padding: 8px 16px;
}
.appearance-option {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.appearance-option:last-child {
  border-bottom: 0;
}
.appearance-option input {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin: 0;
  flex-shrink: 0;
  accent-color: #27865f;
}
.appearance-option > span:first-of-type {
  flex: 1;
  min-width: 0;
}
.appearance-option strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
}
.appearance-option small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
}
.theme-swatch {
  width: 37px;
  height: 43px;
  border-radius: 9px;
  border: 1px solid #52685b70;
  flex-shrink: 0;
  position: relative;
}
.theme-swatch:after {
  content: "";
  position: absolute;
  inset: 8px 6px;
  border-radius: 4px;
  background: #70b793;
  opacity: 0.7;
}
.light-swatch {
  background: #f5f7f3;
}
.dark-swatch {
  background: #17251f;
}
.system-swatch {
  background: linear-gradient(90deg, #f5f7f3 50%, #17251f 50%);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e1ebe5;
  --muted: #a6b8ad;
  --line: #35483d;
  --accent: #9bd7b5;
  --surface: #1a2822;
  --soft: #26392e;
  --shadow: 0 4px 20px #00000014;
  background: #101a17;
  color: var(--ink);
}
[data-theme="dark"] body {
  background: #101a17;
  color: var(--ink);
}
[data-theme="dark"] body > header {
  border-color: var(--line);
}
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] label,
[data-theme="dark"] strong,
[data-theme="dark"] .billinfo {
  color: var(--ink);
}
[data-theme="dark"] .brand,
[data-theme="dark"] .tag,
[data-theme="dark"] .text,
[data-theme="dark"] a {
  color: var(--accent);
}
[data-theme="dark"] .hint,
[data-theme="dark"] .eyebrow,
[data-theme="dark"] .page-heading .eyebrow,
[data-theme="dark"] .stats p,
[data-theme="dark"] .stats small,
[data-theme="dark"] .summary-grid span,
[data-theme="dark"] .summary-grid small,
[data-theme="dark"] .billinfo small,
[data-theme="dark"] .billamount small,
[data-theme="dark"] .upcoming-row small,
[data-theme="dark"] .group-members small,
[data-theme="dark"] .profile-card p,
[data-theme="dark"] .intro p:not(.eyebrow),
[data-theme="dark"] footer {
  color: var(--muted);
}
[data-theme="dark"] .accounts,
[data-theme="dark"] .stats article,
[data-theme="dark"] .summary-grid article,
[data-theme="dark"] .group-card,
[data-theme="dark"] .invitation-card,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .menu-list,
[data-theme="dark"] .menu-list button,
[data-theme="dark"] fieldset,
[data-theme="dark"] #homeUpcoming,
[data-theme="dark"] .toolbar .month {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #14221b;
  border-color: #486151;
  color: var(--ink);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #a1b2a5;
  opacity: 1;
}
[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: #8cd2aa;
  box-shadow: 0 0 0 3px #8cd2aa1c;
}
[data-theme="dark"] input[type="checkbox"],
[data-theme="dark"] input[type="radio"] {
  accent-color: #8cd2aa;
}
[data-theme="dark"] button:focus-visible,
[data-theme="dark"] a:focus-visible {
  outline-color: #b8df99;
}
[data-theme="dark"] .primary,
[data-theme="dark"] .toggle.done {
  background: #75c89a;
  color: #10291c;
  border-color: #75c89a;
}
[data-theme="dark"] .primary:hover {
  background: #91dab1;
}
[data-theme="dark"] .secondary,
[data-theme="dark"] .icon-button,
[data-theme="dark"] .month button,
[data-theme="dark"] .toolbar .month button,
[data-theme="dark"] .dialoghead .text {
  background: #23372a;
  color: var(--accent);
  border-color: #486151;
}
[data-theme="dark"] .workspace-bar {
  border-color: var(--line);
}
[data-theme="dark"] .workspace-bar label {
  color: var(--muted);
}
[data-theme="dark"] .workspace-bar select {
  color: var(--ink);
}
[data-theme="dark"] .balance-hero {
  background: linear-gradient(125deg, #1a4536, #205d45 70%, #286a4b);
  box-shadow: 0 8px 28px #00000030;
}
[data-theme="dark"] .balance-hero,
[data-theme="dark"] .balance-hero strong {
  color: #f0fff5;
}
[data-theme="dark"] .balance-hero > div {
  border-color: #addbbc33;
}
[data-theme="dark"] .paidcard,
[data-theme="dark"] .stats .paidcard,
[data-theme="dark"] .wallet-cards article {
  background: #21382b;
  border-color: #3a5e46;
}
[data-theme="dark"] .wallet-cards article:last-child {
  background: #3a3120;
  border-color: #66583a;
}
[data-theme="dark"] .paidcard strong {
  color: #afe6bf;
}
[data-theme="dark"] .wallet-cards p,
[data-theme="dark"] .wallet-cards small {
  color: #bbccbf;
}
[data-theme="dark"] .wallet-cards article:last-child p,
[data-theme="dark"] .wallet-cards article:last-child small {
  color: #dfd2b6;
}
[data-theme="dark"] .bottom-nav {
  background: #14221bf5;
  border-color: var(--line);
  box-shadow: 0 -8px 24px #00000020;
}
[data-theme="dark"] .bottom-nav button {
  color: #a6b6aa;
}
[data-theme="dark"] .bottom-nav button[aria-current="page"] {
  color: #b7efcc;
}
[data-theme="dark"] .bottom-nav button[aria-current="page"] > span:first-child {
  background: #2b4934;
  box-shadow: inset 0 0 0 1px #43654c;
}
[data-theme="dark"] .badge {
  background: #c95f50;
  color: #fff;
}
[data-theme="dark"] .notification-dot {
  background: #ed9988;
}
[data-theme="dark"] .group-tag,
[data-theme="dark"] .privacy-tag,
[data-theme="dark"] .mini-avatar,
[data-theme="dark"] .avatar,
[data-theme="dark"] .menu-list button > span:first-child {
  background: #2b4130;
  color: #b5e6c4;
  border-color: #46654b;
}
[data-theme="dark"] .group-card.selected {
  border-color: #7cb38f;
}
[data-theme="dark"] .group-members li,
[data-theme="dark"] .menu-list button,
[data-theme="dark"] .income-entry,
[data-theme="dark"] .bill,
[data-theme="dark"] .billactions,
[data-theme="dark"] .upcoming-row,
[data-theme="dark"] .income-history-head,
[data-theme="dark"] .share-entry,
[data-theme="dark"] .plan-person {
  border-color: var(--line);
}
[data-theme="dark"] #mobileLogout,
[data-theme="dark"] .share-entry .text,
[data-theme="dark"] .plan-person .text {
  color: #f0b0a0;
}
[data-theme="dark"] #mobileLogout > span:first-child {
  background: #442a25;
  color: #f0b0a0;
}
[data-theme="dark"] .filters {
  background: #14221b;
}
[data-theme="dark"] .filters button {
  color: #b2c5b7;
}
[data-theme="dark"] .filters button.active {
  background: #2d4935;
  color: #cef0d6;
  box-shadow: none;
}
[data-theme="dark"] .billactions .text,
[data-theme="dark"] .contact-option,
[data-theme="dark"] .income-entry .text {
  background: #25382b;
  color: #b6dfc3;
  border-color: #486151;
}
[data-theme="dark"] .toggle {
  background: #17251d;
  border-color: #789d83;
  color: #b4d8bf;
}
[data-theme="dark"] .status {
  background: #483a1b;
  color: #f5d581;
}
[data-theme="dark"] .status.paid {
  background: #284a31;
  color: #b7eac5;
}
[data-theme="dark"] .status.late {
  background: #4c2926;
  color: #ffc2b4;
}
[data-theme="dark"] .income-entry.voided {
  opacity: 0.82;
}
[data-theme="dark"] dialog,
[data-theme="dark"] dialog .dialoghead,
[data-theme="dark"] #planDialog .plan-footer,
[data-theme="dark"] .import-confirm {
  background: #142019;
  color: var(--ink);
  border-color: var(--line);
}
[data-theme="dark"] dialog::backdrop {
  background: #000000a6;
}
[data-theme="dark"] .plan-table tr,
[data-theme="dark"] .participant-table td,
[data-theme="dark"] .import-row {
  background: var(--surface);
  border-color: var(--line);
}
[data-theme="dark"] .plan-table th,
[data-theme="dark"] .participant-table th,
[data-theme="dark"] #planSummary,
[data-theme="dark"] #fundingHint,
[data-theme="dark"] .notice,
[data-theme="dark"] .import-help,
[data-theme="dark"] #importSummary {
  background: #273c2c;
  color: #c3ddc9;
  border-color: #46614b;
}
[data-theme="dark"] .plan-table td,
[data-theme="dark"] .participant-table th,
[data-theme="dark"] .participant-table td,
[data-theme="dark"] #memberList p,
[data-theme="dark"] #auditList p,
[data-theme="dark"] #paymentHistory p {
  border-color: var(--line);
}
[data-theme="dark"] .plan-table td:before {
  color: #b0dabc;
}
[data-theme="dark"] .import-row.invalid {
  background: #382420;
  border-color: #8d5b4c;
}
[data-theme="dark"] #authError,
[data-theme="dark"] #incomeError,
[data-theme="dark"] #participantError,
[data-theme="dark"] #planError,
[data-theme="dark"] #groupsError,
[data-theme="dark"] #outflowsError,
[data-theme="dark"] #newInviteError,
[data-theme="dark"] #joinError,
[data-theme="dark"] #profileError,
[data-theme="dark"] #invitationsError,
[data-theme="dark"] #importMessage,
[data-theme="dark"] .import-error {
  color: #ffb5a5;
}
[data-theme="dark"] .import-warning {
  color: #efd397;
}
[data-theme="dark"] .empty,
[data-theme="dark"] .empty strong {
  color: #bdcfc1;
}
[data-theme="dark"] .illustration {
  background: #293e2e;
  color: #a9d5b3;
}
[data-theme="dark"] #toast {
  background: #d1edda;
  color: #142e20;
}
@media (hover: hover) {
  [data-theme="dark"] .secondary:hover,
  [data-theme="dark"] .upcoming-row:hover,
  [data-theme="dark"] .menu-list button:hover {
    background: #304735;
  }
}
@media (max-width: 760px) {
  [data-theme="dark"] .workspace-bar label {
    background: var(--surface);
    border-color: var(--line);
  }
  [data-theme="dark"] .workspace-bar select {
    background: transparent;
  }
  #mobileAppearance small {
    max-width: 74px;
    text-align: right;
  }
}
[data-theme="dark"]
  dialog:is(#planDialog, #participantsDialog, #importDialog, #outflowsDialog) {
  background: #142019;
  color: var(--ink);
}
[data-theme="dark"] .menu-list button {
  color: var(--ink);
}
