.account-card {
  padding: 18px;
}

.account-card h2 + p, .account-card p + p {
  margin-top: 6px;
}

.account-card h3 {
  font-size: 13px;
  margin: 0;
}

.account-card .button {
  margin-top: 12px;
}

.back {
  display: inline-flex;
  font-size: 12px;
  font-weight: 750;
  margin-bottom: 16px;
}

.auth-hero, .balance-card {
  padding: 21px;
  border-radius: 20px;
  color: white;
  background: linear-gradient(140deg, #0e4838, #26735a);
  margin-bottom: 18px;
}

.auth-hero p, .balance-card p {
  color: #d0e5d8;
  line-height: 1.6;
  margin-top: 7px;
}

.balance-card strong {
  display: block;
  font-size: 34px;
  margin: 4px 0;
  overflow-wrap: anywhere;
}

.balance-card small {
  color: #d0e5d8;
}

.account-form label {
  display: block;
  font-size: 12px;
  font-weight: 750;
  margin: 14px 0 6px;
}

.account-form label:first-child {
  margin-top: 0;
}

.account-form input:not([type="checkbox"]), .account-form select {
  display: block;
  width: 100%;
  min-height: 47px;
  border: 1px solid #cfdcd2;
  background: #fff;
  border-radius: 10px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

.account-form .check {
  display: flex;
  gap: 8px;
  align-items: baseline;
  font-weight: 500;
  line-height: 1.5;
}

.account-form .check input {
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--green);
}

.button {
  border: none;
  cursor: pointer;
}

.button:disabled {
  opacity: .55;
  cursor: default;
}

.light {
  background: #e7f1ea;
  color: var(--green);
}

.danger {
  background: #fcece8;
  color: #913a27;
}

button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #b98120;
  outline-offset: 3px;
}

.form-foot {
  margin-top: 15px;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.form-foot a, .check a, .account-footer a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.notice {
  margin: 0 18px 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fcece8;
  color: #913a27;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.notice[data-success="true"] {
  background: #e0f2e7;
  color: #245c41;
}

.section-title {
  margin: 24px 0 10px;
}

.list-item {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.list-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.list-item:last-child {
  padding-bottom: 0;
}

.list-item small {
  color: var(--muted);
}

.coin-amount {
  color: var(--green);
  white-space: nowrap;
}

.coin-amount.negative {
  color: #895621;
}

.withdrawal-form {
  margin-top: 16px;
}

.withdrawal-progress {
  margin: 15px 0 12px;
  padding: 12px;
  border-radius: 12px;
  background: #f0f5ef;
}

.withdrawal-progress label {
  color: var(--green);
  font-size: 13px;
  font-weight: 750;
}

.withdrawal-progress progress {
  display: block;
  width: 100%;
  height: 10px;
  margin: 8px 0;
  accent-color: var(--green);
}

.withdrawal-progress p {
  font-size: 13px;
}

.withdrawal-value, .withdrawal-hint {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.withdrawal-value output {
  color: var(--green);
  font-weight: 750;
  white-space: nowrap;
}

.withdrawal-history {
  overflow-wrap: anywhere;
}

.withdrawal-history .withdrawal-reserved {
  margin: 0 0 12px;
  color: var(--green);
}

.withdrawal-row {
  flex-wrap: wrap;
}

.pill[data-withdrawal-status="pending"] {
  background: #faefd8;
  color: #76541e;
}

.pill[data-withdrawal-status="rejected"] {
  background: #fcece8;
  color: #913a27;
}

.withdrawal-dialog {
  width: min(390px, calc(100% - 28px));
  border: 0;
  border-radius: 20px;
  padding: 22px;
  background: var(--background);
  color: var(--ink);
}

.withdrawal-dialog::backdrop {
  background: #08271fd0;
}

.withdrawal-dialog dl {
  margin: 16px 0;
  padding: 4px 12px;
  border-radius: 12px;
  background: white;
}

.withdrawal-dialog dl div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 9px 0;
  color: var(--muted);
  font-size: 13px;
}

.withdrawal-dialog dl div + div {
  border-top: 1px solid var(--line);
}

.withdrawal-dialog dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
  text-align: end;
  overflow-wrap: anywhere;
}

.withdrawal-dialog p {
  line-height: 1.55;
}

.withdrawal-dialog .withdrawal-review-error {
  margin-top: 10px;
  color: #913a27;
}

.withdrawal-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.withdrawal-review-actions .button {
  flex: 1 1 auto;
}

#retiro, #historial-de-retiros {
  scroll-margin-top: 12px;
}

.invite-code {
  display: block;
  padding: 12px 0;
  text-align: center;
  color: var(--green);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: .13em;
}

.copy-url {
  background: #f0f5ef;
  border-radius: 10px;
  padding: 12px;
  overflow-wrap: anywhere;
  color: var(--green);
  font-size: 12px;
  user-select: all;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.share-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.stats > div {
  padding: 14px;
  margin: 0;
}

.stats strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.pill {
  flex-shrink: 0;
  border-radius: 30px;
  padding: 4px 8px;
  font-size: 11px;
  background: #e7f1ea;
  color: var(--green);
}

.profile-head {
  padding: 10px 6px 22px;
  text-align: center;
  overflow-wrap: anywhere;
}

.profile-head .avatar {
  width: 58px;
  height: 58px;
  margin: 0 auto 10px;
  font-size: 22px;
}

.profile-head p {
  margin-top: 6px;
  color: var(--muted);
}

.account-menu {
  padding: 0;
  overflow: hidden;
}

.account-menu a, .account-menu button {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 16px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--green);
  font: inherit;
  font-weight: 650;
  text-align: left;
  cursor: pointer;
}

.account-menu > :last-child {
  border-bottom: 0;
}

.account-menu a:focus-visible, .account-menu button:focus-visible {
  outline-offset: -3px;
}

.achievements {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.achievement {
  padding: 10px 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: center;
  font-size: 11px;
}

.achievement.earned {
  background: #fcf3df;
  border-color: #eed7a4;
}

.achievement b, .achievement small {
  display: block;
}

.achievement b {
  font-size: 18px;
  color: var(--green);
  margin-bottom: 4px;
}

.achievement small {
  margin-top: 3px;
  color: var(--muted);
}

.profile-notifications summary {
  color: var(--green);
  font-weight: 750;
  cursor: pointer;
}

.profile-notifications .list-item {
  margin-top: 8px;
}

.account-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.rules {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.legal h2:not(:first-child) {
  margin-top: 18px;
}

.delete-form summary {
  cursor: pointer;
  color: #913a27;
  font-weight: 750;
}

.delete-form form {
  margin-top: 14px;
}

.walk-status {
  color: #d0e5d8;
  text-align: center;
  line-height: 1.5;
  margin-top: 10px;
}

.recovery-dialog {
  width: min(390px, calc(100% - 30px));
  border: 0;
  border-radius: 20px;
  background: var(--background);
  color: var(--ink);
  padding: 22px;
}

.recovery-dialog::backdrop {
  background: #08271fd0;
}

.recovery-dialog p {
  margin: 12px 0;
  line-height: 1.65;
}

.recovery-dialog code {
  display: block;
  border-radius: 10px;
  padding: 12px;
  background: white;
  overflow-wrap: anywhere;
  user-select: all;
}

.recovery-dialog .button {
  margin-top: 10px;
}
