/* Quiet-luxury ledger: an editorial serif (Fraunces) over a warm grotesque
   (Hanken Grotesk), on paper. */
:root {
  --paper: #f6f2e9; --paper-raised: #fffdf8;
  --ink: #1b2a23; --ink-soft: #57655c; --line: #e4ddcc;
  --forest: #1f5740; --forest-deep: #163f2e;
  --in: #2f7a57; --out: #b04a2f; --brass: #ad8a52; --amber: #b6831f;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, sans-serif;
  --serif: "Fraunces", ui-serif, Georgia, serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  /* A barely-there warm vignette for depth. */
  background-image:
    radial-gradient(120% 90% at 50% -10%, rgba(31, 87, 64, 0.06), transparent 60%),
    radial-gradient(80% 60% at 100% 0%, rgba(173, 138, 82, 0.05), transparent 55%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, p { margin: 0; }
.display { font-family: var(--serif); font-optical-sizing: auto; font-weight: 400; letter-spacing: -0.01em; }
.wrap { max-width: 64rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .wrap { padding: 0 2rem; } }
main.page { padding-top: 2.5rem; padding-bottom: 2.5rem; }
.sub { color: var(--ink-soft); }
.label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: rgb(87 101 92 / 0.8); }
.in { color: var(--in); }
.out { color: var(--out); }
.faint { color: rgb(87 101 92 / 0.4); }
.card { border: 1px solid var(--line); border-radius: 1rem; background: var(--paper-raised); }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 20; border-bottom: 1px solid rgb(228 221 204 / 0.8);
  background: rgb(246 242 233 / 0.7); backdrop-filter: blur(4px);
}
header.top .wrap { height: 4rem; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 0.625rem; }
.brand .display { font-size: 1.25rem; transition: color 0.15s; }
.brand:hover .display { color: var(--forest); }
.mark {
  display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--forest); color: var(--paper-raised); font-size: 13px;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.mark.big { width: 3.5rem; height: 3.5rem; border-radius: 1rem; font-size: 1.25rem; margin-bottom: 1.25rem; }
header.top .who { display: flex; align-items: center; gap: 1.25rem; font-size: 0.875rem; color: var(--ink-soft); }
.household { display: none; align-items: center; gap: 0.5rem; }
.household i { color: var(--brass); font-size: 0.75rem; }
@media (min-width: 640px) { .household { display: flex; } }
.signout { display: flex; align-items: center; gap: 0.375rem; border: 0; background: none; padding: 0; color: inherit; font-size: 0.875rem; }
.signout i { font-size: 0.75rem; }
.signout:hover { color: var(--out); }

/* Flash */
.flashes { margin-top: 1rem; }
.flash {
  display: flex; align-items: center; gap: 0.75rem; border-radius: 0.75rem; padding: 0.75rem 1rem;
  font-size: 0.875rem; font-weight: 500; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
  border: 1px solid rgb(31 87 64 / 0.2); background: rgb(31 87 64 / 0.05); color: var(--forest);
}
.flash.alert { border-color: rgb(176 74 47 / 0.25); background: rgb(176 74 47 / 0.05); color: var(--out); }

/* Accounts */
.intro { margin-bottom: 2rem; }
.eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.2em; color: var(--brass); margin-bottom: 0.5rem; }
.intro h1 { font-size: 2.25rem; line-height: 1.1; }
.intro .sub { margin-top: 0.5rem; }
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
.card.account {
  display: block; padding: 1.5rem; box-shadow: 0 1px 0 rgba(27, 42, 35, 0.03);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card.account:hover { box-shadow: 0 18px 40px -24px rgba(27, 42, 35, 0.45); transform: translateY(-2px); }
.top-row { display: flex; align-items: flex-start; justify-content: space-between; }
.badge { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 0.75rem; background: rgb(31 87 64 / 0.08); color: var(--forest); }
.badge.big { width: 3rem; height: 3rem; font-size: 1.125rem; }
.go { color: rgb(87 101 92 / 0.4); transition: color 0.15s, transform 0.15s; }
.card.account:hover .go { color: var(--forest); transform: translateX(2px); }
.card.account h2 { margin-top: 1.25rem; font-size: 1.5rem; }
.card.account .label { margin-top: 0.75rem; color: rgb(87 101 92 / 0.7); }
.card.account .amount { margin-top: 0.125rem; font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.empty { border: 1px dashed var(--line); border-radius: 1rem; background: rgb(255 253 248 / 0.5); padding: 3rem; text-align: center; color: var(--ink-soft); }
.empty > i { font-size: 1.875rem; color: rgb(87 101 92 / 0.4); }
.empty .display { margin: 1rem 0 0.25rem; font-size: 1.25rem; color: var(--ink); }
.empty code { font-size: 0.875rem; background: var(--paper); padding: 0.125rem 0.375rem; border-radius: 0.25rem; }
.empty.inline { border: 0; background: none; padding: 2.5rem 3rem; }
.empty.inline > i { font-size: 1.5rem; }
.empty.inline .display { font-size: 1.125rem; margin-top: 0.75rem; }
.empty.inline p:last-child { font-size: 0.875rem; }

/* Account */
.back { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.875rem; color: var(--ink-soft); margin-bottom: 1.5rem; transition: color 0.15s; }
.back i { font-size: 0.75rem; }
.back:hover { color: var(--forest); }
.account-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 2rem; }
.account-head h1 { font-size: 1.875rem; line-height: 1.2; }
.account-head .sub { font-size: 0.875rem; }
.balances { display: grid; gap: 1rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .balances { grid-template-columns: 1fr 1fr; } }
.balances .card { padding: 1.25rem; }
.balances .label { display: flex; align-items: center; gap: 0.5rem; }
.balances .amount { margin-top: 0.5rem; font-size: 1.875rem; font-variant-numeric: tabular-nums; }
.hint { margin-top: 0.25rem; font-size: 0.75rem; color: rgb(87 101 92 / 0.8); }
.card.projected {
  background: linear-gradient(to bottom right, var(--forest), var(--forest-deep)); color: var(--paper-raised);
  box-shadow: 0 18px 40px -26px rgba(22, 63, 46, 0.8);
}
.card.projected .label, .card.projected .hint { color: rgb(255 253 248 / 0.7); }
.card.projected .label i { color: var(--brass); }

/* Ledger */
.ledger { overflow: hidden; }
.ledger .scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { text-align: left; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: rgb(87 101 92 / 0.7); background: rgb(246 242 233 / 0.6); }
th, td { padding: 0.75rem 1.25rem; }
td { border-top: 1px solid rgb(228 221 204 / 0.7); }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgb(31 87 64 / 0.03); }
tr.virtual { background: rgb(246 242 233 / 0.4); }
/* Each date's rows share one date cell down the left. */
td.when {
  white-space: nowrap; font-variant-numeric: tabular-nums; vertical-align: top;
  background: var(--paper-raised); border-right: 1px solid rgb(228 221 204 / 0.7);
}
td.when.scheduled { color: var(--ink-soft); background: rgb(246 242 233 / 0.4); }
td.when .date { display: block; font-weight: 500; }
td.when .count { display: block; margin-top: 0.125rem; font-size: 0.75rem; line-height: 1rem; color: rgb(87 101 92 / 0.7); }
tr.day > td { border-top-color: var(--line); }
tbody tr.day:not(:first-child) > td { border-top-width: 2px; }
.what { display: flex; align-items: center; gap: 0.625rem; }
.what > div { min-width: 0; }
.line { display: flex; align-items: center; gap: 0.5rem; }
/* The payee on top, the description under it, both from the same edge.
   Status marks get a fixed slot, so text lines up from row to row. */
.mark-slot { flex: none; width: 1.125rem; display: flex; justify-content: center; }
.names { display: flex; flex-direction: column; align-items: flex-start; }
.headline { font-weight: 600; }
tr.virtual .headline { font-weight: 500; font-style: italic; color: var(--ink-soft); }
.subline { margin-top: 0.0625rem; font-size: 0.8125rem; line-height: 1.125rem; color: var(--ink-soft); }
tr.virtual .subline { font-style: italic; }
.projected-icon { color: rgb(173 138 82 / 0.7); }
.recurring { font-size: 10px; color: rgb(87 101 92 / 0.4); }
.due {
  display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 999px; padding: 0.125rem 0.5rem;
  background: rgb(182 131 31 / 0.1); color: var(--amber);
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em;
}
.due i { font-size: 9px; }
td.amount { font-weight: 500; }
td.amount i { font-size: 10px; margin-right: 0.25rem; opacity: 0.6; }
td form { margin: 0; }
.record {
  display: inline-flex; align-items: center; gap: 0.375rem; border-radius: 0.5rem; padding: 0.375rem 0.75rem;
  border: 1px solid rgb(31 87 64 / 0.25); background: rgb(31 87 64 / 0.05); color: var(--forest);
  font-size: 0.75rem; font-weight: 600; transition: background 0.15s, color 0.15s;
}
.record i { font-size: 11px; }
.record:hover { background: var(--forest); color: var(--paper-raised); }
.legend { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; font-size: 0.75rem; color: rgb(87 101 92 / 0.8); }
.legend span { display: inline-flex; align-items: center; gap: 0.375rem; }
.dock-space { height: 6rem; }

/* The entry bar stays docked at the bottom, reachable from anywhere in the ledger. */
.dock {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 30;
  border-top: 1px solid var(--line); background: rgb(246 242 233 / 0.9); backdrop-filter: blur(4px);
  box-shadow: 0 -8px 24px -14px rgba(27, 42, 35, 0.35);
}
.dock form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.625rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
.dock input[type=text], .dock input[type=date] {
  border: 1px solid var(--line); border-radius: 0.5rem; background: var(--paper-raised); color: var(--ink);
  padding: 0.375rem 0.75rem; font: inherit; font-size: 0.875rem;
}
.dock input::placeholder { color: rgb(87 101 92 / 0.5); }
.dock input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 2px rgb(31 87 64 / 0.2); }
.dock .date { width: 10rem; padding: 0.375rem 0.625rem; font-variant-numeric: tabular-nums; }
.dock .payee-in { width: 11rem; }
.dock .grow { flex: 1; min-width: 8rem; }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--paper-raised); padding: 2px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented span { display: block; border-radius: 0.375rem; padding: 0.25rem 0.75rem; font-size: 0.875rem; font-weight: 500; color: var(--ink-soft); transition: background 0.15s, color 0.15s; }
.segmented input:checked + .expense { background: var(--out); color: var(--paper-raised); }
.segmented input:checked + .income { background: var(--in); color: var(--paper-raised); }
.segmented input:focus-visible + span { box-shadow: 0 0 0 2px rgb(31 87 64 / 0.3); }
.dollars { position: relative; }
.dollars span { position: absolute; left: 0.625rem; top: 50%; transform: translateY(-50%); color: rgb(87 101 92 / 0.6); font-size: 0.875rem; }
.dock .dollars input { width: 7rem; padding-left: 1.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.check { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--ink-soft); cursor: pointer; user-select: none; }
.check input { width: 1rem; height: 1rem; accent-color: var(--forest); }
.add {
  display: inline-flex; align-items: center; gap: 0.375rem; border: 0; border-radius: 0.5rem; padding: 0.375rem 0.875rem;
  background: var(--forest); color: var(--paper-raised); font-size: 0.875rem; font-weight: 600; transition: background 0.15s;
}
.add i { font-size: 11px; }
.add:hover { background: var(--forest-deep); }

/* Sign in */
.signin { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 4rem 0; }
.signin .box { width: 100%; max-width: 28rem; }
.hello { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 2.5rem; }
.hello h1 { font-size: 2.25rem; }
.hello .sub { margin-top: 0.5rem; }
.signin .card { padding: 2rem; box-shadow: 0 1px 0 rgba(27, 42, 35, 0.04), 0 12px 40px -20px rgba(27, 42, 35, 0.25); }
.signin .card h2 { font-size: 1.25rem; margin-bottom: 0.25rem; }
.signin .card > .sub { font-size: 0.875rem; margin-bottom: 1.5rem; }
.signin .label { display: block; font-size: 0.75rem; letter-spacing: 0.05em; color: var(--ink-soft); margin-bottom: 0.5rem; }
.primary {
  margin-top: 1.25rem; width: 100%; display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  border: 0; border-radius: 0.75rem; padding: 0.75rem; background: var(--forest); color: var(--paper-raised);
  font-weight: 600; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); transition: background 0.15s;
}
.primary i { font-size: 0.875rem; }
.primary:hover { background: var(--forest-deep); }
.fine { margin-top: 1.5rem; text-align: center; font-size: 0.75rem; color: rgb(87 101 92 / 0.8); }

/* Line heights to go with each text size. */
.intro h1, .hello h1 { line-height: 2.5rem; }
.account-head h1, .balances .amount { line-height: 2.25rem; }
.card.account h2, .card.account .amount { line-height: 2rem; }
.brand .display, .signin .card h2, .empty .display { line-height: 1.75rem; }
.empty.inline .display { line-height: 1.75rem; }
table, .flash, .back, header.top .who, .account-head .sub, .signin .card > .sub, .empty code, .empty.inline p:last-child,
.segmented span, .dock input[type=text], .dock input[type=date], .dollars span, .add { line-height: 1.25rem; }
.label, .hint, .eyebrow, .record, .legend, .payee, .check, .fine { line-height: 1rem; }

/* Editing a transaction */
.edit {
  display: inline-flex; align-items: center; gap: 0.375rem; border-radius: 0.5rem; padding: 0.375rem 0.75rem;
  border: 1px solid var(--line); color: var(--ink-soft); font-size: 0.75rem; font-weight: 600; line-height: 1rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.edit i { font-size: 10px; }
.edit:hover { color: var(--forest); border-color: rgb(31 87 64 / 0.25); background: rgb(31 87 64 / 0.05); }
.editor { padding: 1.5rem; }
.editor form { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 640px) { .editor form { grid-template-columns: 1fr 1fr; } .editor .wide { grid-column: 1 / -1; } }
.editor .label { display: block; margin-bottom: 0.375rem; }
.editor input[type=text], .editor input[type=date] {
  width: 100%; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--paper-raised); color: var(--ink);
  height: 2.5rem; padding: 0 0.75rem; font: inherit; font-size: 0.875rem; line-height: 1.25rem;
}
.editor input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 2px rgb(31 87 64 / 0.2); }
.editor .dollars { display: block; }
.editor .dollars input { padding-left: 1.5rem; text-align: right; font-variant-numeric: tabular-nums; }
.editor .check { align-self: center; }
.editor .actions { display: flex; align-items: center; gap: 1.25rem; }
.editor .actions .back { margin: 0; }
.delete { margin-top: 1.5rem; }
.delete button {
  display: inline-flex; align-items: center; gap: 0.5rem; border: 1px solid rgb(176 74 47 / 0.25); border-radius: 0.5rem;
  background: none; padding: 0.5rem 0.875rem; color: var(--out); font-size: 0.875rem; font-weight: 500; line-height: 1.25rem;
  transition: background 0.15s, color 0.15s;
}
.delete button:hover { background: var(--out); color: var(--paper-raised); }

/* Balancing against a statement */
.balance-open, .quiet {
  display: inline-flex; align-items: center; gap: 0.375rem; border-radius: 0.5rem; padding: 0.375rem 0.75rem;
  border: 1px solid var(--line); background: none; color: var(--ink-soft);
  font-size: 0.75rem; font-weight: 600; line-height: 1rem; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.balance-open { margin-top: 0.875rem; }
.balance-open i { font-size: 10px; }
.balance-open:hover, .quiet:hover { color: var(--forest); border-color: rgb(31 87 64 / 0.25); background: rgb(31 87 64 / 0.05); }
.balancing {
  position: sticky; top: 4.75rem; z-index: 10; margin-bottom: 1rem; padding: 1rem 1.25rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem;
  border-color: rgb(182 131 31 / 0.4); background: #fffaf0; box-shadow: 0 12px 30px -20px rgba(27, 42, 35, 0.45);
}
.balancing.even { border-color: rgb(47 122 87 / 0.4); background: #f5faf6; }
.balancing .figures { display: flex; gap: 1.75rem; }
.balancing .figure { font-size: 1.125rem; line-height: 1.75rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.balancing .difference { color: var(--amber); }
.balancing.even .difference { color: var(--in); }
.balancing .hint { flex: 1; min-width: 12rem; margin: 0; }
.balancing .buttons, .prompt .buttons { display: flex; align-items: center; gap: 0.625rem; }
.balancing form { margin: 0; }
.add:disabled { background: rgb(31 87 64 / 0.35); cursor: not-allowed; }
.prompt { width: min(26rem, calc(100vw - 2rem)); padding: 1.5rem; color: var(--ink); box-shadow: 0 24px 60px -24px rgba(27, 42, 35, 0.5); }
.prompt::backdrop { background: rgb(27 42 35 / 0.35); backdrop-filter: blur(2px); }
.prompt h2 { font-size: 1.25rem; line-height: 1.75rem; }
.prompt .sub { font-size: 0.875rem; line-height: 1.25rem; margin: 0.25rem 0 1.25rem; }
.prompt .label { display: block; margin-bottom: 0.375rem; }
.prompt .dollars { display: block; }
.prompt input {
  width: 100%; height: 2.75rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--paper-raised);
  padding: 0 0.75rem 0 1.5rem; font: inherit; font-size: 1.125rem; text-align: right; font-variant-numeric: tabular-nums; color: var(--ink);
}
.prompt input:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 2px rgb(31 87 64 / 0.2); }
.prompt .hint { margin: 0.5rem 0 1.25rem; }
.clear { margin: 0; display: flex; }
.clear button { border: 0; background: none; padding: 0.25rem; margin: -0.25rem; color: rgb(87 101 92 / 0.4); border-radius: 50%; line-height: 1; }
.clear button:hover { color: var(--in); background: rgb(47 122 87 / 0.08); }

/* Uncleared: posted, but not yet seen on the bank's side. A warm tint, a
   stripe down the left, a dashed circle and a dashed tag, so they stand
   apart from cleared rows and from scheduled ones. */
tr.uncleared > td:not(.when) { background: rgb(173 138 82 / 0.07); }
tr.uncleared > td.when + td, tr.uncleared:not(.day) > td:first-child { box-shadow: inset 3px 0 0 var(--brass); }
.clear button.pending {
  width: 1rem; height: 1rem; padding: 0; margin: 0; border: 1.5px dashed var(--brass); border-radius: 50%; background: none;
}
.clear button.pending:hover { border-style: solid; border-color: var(--in); background: rgb(47 122 87 / 0.12); }
.pending-tag {
  display: inline-flex; align-items: center; border: 1px dashed rgb(173 138 82 / 0.7); border-radius: 999px; padding: 0 0.5rem;
  color: #8a6a35; font-size: 10px; line-height: 1rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.025em;
}
.pending-dot { display: inline-block; width: 0.75rem; height: 0.75rem; border: 1.5px dashed var(--brass); border-radius: 50%; }
.untitled { font-style: italic; font-weight: 400; color: rgb(87 101 92 / 0.6); }

/* Repeating a transaction, on its edit page */
.repeat { margin-top: 1.5rem; padding: 1.25rem 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.repeat .label { display: flex; align-items: center; gap: 0.5rem; }
.repeat .hint { max-width: 36rem; }
.repeat form { margin: 0; }
.repeat .balance-open { margin: 0; }
.repeat .behind { margin-top: 0.375rem; color: var(--amber); }

/* A date kept from the last entry, so it isn't mistaken for today. */
.dock input.date.not-today { border-color: var(--brass); background: #fffaf0; box-shadow: 0 0 0 1px var(--brass); }

/* Possible duplicates */
.dup { margin-top: 0.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.dup-tag {
  display: inline-flex; align-items: center; gap: 0.25rem; border-radius: 999px; padding: 0 0.5rem;
  background: rgb(176 74 47 / 0.1); color: var(--out); font-size: 10px; line-height: 1rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.025em;
}
.dup-tag i { font-size: 9px; }
.dup form { margin: 0; }
.dup button {
  border: 0; background: none; padding: 0; color: var(--ink-soft); font-size: 0.75rem; line-height: 1rem;
  text-decoration: underline; text-decoration-color: rgb(87 101 92 / 0.4); text-underline-offset: 2px;
}
.dup button:hover { color: var(--forest); text-decoration-color: currentColor; }
.dup-note {
  display: flex; align-items: baseline; gap: 0.5rem; margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 0.75rem;
  border: 1px solid rgb(176 74 47 / 0.25); background: rgb(176 74 47 / 0.05); color: var(--out);
  font-size: 0.875rem; line-height: 1.25rem;
}
.repeat-form { flex: 1; }
.repeat-form .cadences { margin: 0.75rem 0; display: grid; gap: 0.5rem; font-size: 0.875rem; line-height: 1.25rem; }
.repeat-form .cadences label { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; cursor: pointer; }
.repeat-form input[type=radio] { accent-color: var(--forest); margin: 0; }
.repeat-form select {
  border: 1px solid var(--line); border-radius: 0.375rem; background: var(--paper-raised); color: var(--ink);
  padding: 0.125rem 0.375rem; font: inherit; font-size: 0.875rem;
}

/* Passkey sign-in */
.signin .error {
  margin-top: 1rem; padding: 0.625rem 0.875rem; border-radius: 0.75rem; font-size: 0.875rem; line-height: 1.25rem;
  border: 1px solid rgb(176 74 47 / 0.25); background: rgb(176 74 47 / 0.05); color: var(--out);
}
.signin .error[hidden] { display: none; }
.signin code { font-size: 0.8125rem; background: var(--paper); padding: 0.0625rem 0.375rem; border-radius: 0.25rem; }
.primary:disabled { opacity: 0.6; cursor: progress; }
