/* Treatly — cash treats.
   Built from the same parts as the rest of the app: sunken engraved surfaces
   for things you read, raised pills for things you press. Nothing here is
   decorative; money is the one place in this app where being plain is the
   whole point. */

.ct-copy {
  margin: 0 0 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--t2);
  line-height: 1.4;
}
.ct-copy--foot {
  margin: 14px 0 0;
  font-size: 11.5px;
  color: var(--t3);
}
.ct-hint {
  margin: 6px 0 0;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--t3);
  line-height: 1.35;
}
.ct-warn {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: var(--soc-task-r, 10px);
  background: var(--soc-sunken, var(--s2));
  border: 1px solid var(--soc-border, var(--border));
  box-shadow: var(--soc-card-recess);
  font-size: 12px;
  font-weight: 600;
  color: var(--t2);
  line-height: 1.4;
}

/* ── rail picker ── */
.ct-rails {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.ct-rail {
  padding: 8px 13px;
  border-radius: var(--soc-task-r, 10px);
  border: 1px solid var(--soc-border, var(--border));
  background: var(--soc-sunken, var(--s2));
  box-shadow: var(--soc-card-recess);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--t2);
  cursor: pointer;
}
.ct-rail.is-on {
  background: var(--soc-card, var(--surface));
  color: var(--text);
  border-color: var(--soc-text, var(--text));
  box-shadow: none;
}

.ct-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
}
.ct-actions .cta {
  flex: 1;
  margin: 0;
}
.ct-ghost {
  padding: 10px 14px;
  border-radius: var(--soc-task-r, 10px);
  border: 1px solid var(--soc-border, var(--border));
  background: var(--soc-sunken, var(--s2));
  box-shadow: var(--soc-card-recess);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--t2);
  cursor: pointer;
  white-space: nowrap;
}
.ct-saved {
  margin: 12px 0 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--t2);
}
.ct-saved--none { color: var(--t3); }

/* ── the sheet ── */
.ct-target {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding: 12px 13px;
  margin-bottom: 14px;
  border-radius: var(--soc-task-r, 10px);
  background: var(--soc-sunken, var(--s2));
  border: 1px solid var(--soc-border, var(--border));
  box-shadow: var(--soc-lockin-recess, var(--soc-card-recess));
}
.ct-target span {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--t3);
}
.ct-target strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--text);
}
.ct-target small { font-size: 12px; font-weight: 600; color: var(--t2); }

.ct-amounts, .ct-when {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}
.ct-amount, .ct-whenbtn {
  flex: 1;
  min-width: 76px;
  padding: 11px 10px;
  border-radius: var(--soc-task-r, 10px);
  border: 1px solid var(--soc-border, var(--border));
  background: var(--soc-sunken, var(--s2));
  box-shadow: var(--soc-card-recess);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  font-weight: 800;
  color: var(--t2);
  cursor: pointer;
}
.ct-whenbtn { font-size: 12px; }
.ct-amount.is-on, .ct-whenbtn.is-on {
  background: var(--soc-card, var(--surface));
  color: var(--text);
  border-color: var(--soc-text, var(--text));
  box-shadow: none;
}
.ct-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.ct-custom span {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--t2);
}
.ct-custom .finput { flex: 1; margin: 0; }
.ct-date { margin-bottom: 10px; }

/* ── ledger ── */
.ct-block { margin-bottom: 16px; }
.ct-block-lbl {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 7px;
}
.ct-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ct-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: var(--soc-task-r, 10px);
  background: var(--soc-sunken, var(--s2));
  border: 1px solid var(--soc-border, var(--border));
  box-shadow: var(--soc-lockin-recess, var(--soc-card-recess));
}
/* Owed now is the only state that gets a colour, because it is the only one
   that is asking something of you. */
.ct-row--due { border-color: rgba(150,66,62,.45); background: #f4dedd; }
[data-theme="dark"] .ct-row--due { background: #3a2726; }
.ct-row--received { opacity: .62; }
.ct-amt {
  flex-shrink: 0;
  min-width: 52px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.ct-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ct-main strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--text);
}
.ct-main small {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--t2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ct-row-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.ct-row-actions .ct-ghost { padding: 8px 10px; font-size: 11.5px; }
/* The one raised thing in the list: the tap that actually moves money. */
.ct-pay {
  display: inline-flex;
  align-items: center;
  padding: 9px 13px;
  border-radius: var(--soc-task-r, 10px);
  border: 1px solid var(--soc-border, var(--border));
  background: var(--soc-card, var(--surface));
  color: var(--soc-text, var(--text));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 3px 10px rgba(0,0,0,.13), 0 1px 3px rgba(0,0,0,.09);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.ct-pay:active { transform: scale(.98); }
.ct-empty { margin: 0; font-size: 12.5px; font-weight: 600; color: var(--t3); }

@media (prefers-reduced-motion: reduce) {
  .ct-pay:active { transform: none; }
}
