:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #153c30;
  background: #f5f6f0;
  font-synthesis: none;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  border: 0;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #7d9a36;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
}
.header {
  max-width: 1240px;
  margin: auto;
  padding: 28px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #dfe4d9;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 750;
  font-size: 24px;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-top: 3px;
}
.mark {
  background: #d7ed9a;
  color: #173e31;
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -2px;
}
.header-note,
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: #65816b;
}
.header-note {
  color: #476956;
}
main {
  max-width: 1240px;
  margin: auto;
  padding: 30px 40px 70px;
}
h1,
h2,
p {
  margin: 0;
}
h1 {
  font-size: 38px;
  letter-spacing: -1.7px;
  line-height: 1.12;
  margin: 12px 0;
}
h2 {
  font-size: 22px;
  letter-spacing: -0.7px;
}
.eyebrow {
  margin-bottom: 10px;
}
.muted,
.hint {
  color: #6f8075;
  line-height: 1.7;
}
.hint {
  font-size: 11px;
}
.intro {
  font-size: 17px;
  line-height: 1.75;
  color: #688172;
  max-width: 430px;
  margin: 25px 0;
}
.primary,
.secondary,
.danger {
  border-radius: 8px;
  padding: 12px 16px;
  font-weight: 650;
  font-size: 12px;
  min-height: 42px;
}
.primary {
  background: #173f31;
  color: white;
}
.primary:hover {
  background: #22583f;
}
.secondary {
  background: white;
  border: 1px solid #d5dfd0;
  color: #2c503b;
}
.danger {
  background: #f2e7de;
  color: #874124;
  border: 1px solid #e4c7b6;
}
.text-button {
  background: transparent;
  color: #365c40;
  font-size: 12px;
  padding: 10px 2px;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.login {
  min-height: 70vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.login h1 {
  font-size: 64px;
  letter-spacing: -3px;
}
.login .muted {
  font-size: 11px;
  margin-top: 20px;
}
.illustration {
  position: relative;
  background: #e8eddc;
  border-radius: 25px;
  min-height: 430px;
  padding: 70px 35px;
}
.wallet-art {
  max-width: 370px;
  height: 230px;
  margin: auto;
  border-radius: 18px;
  background: #194433;
  color: #e4efcf;
  box-shadow: 0 25px 45px #183d3025;
  padding: 25px;
  transform: rotate(-7deg);
  display: flex;
  flex-direction: column;
}
.art-brand {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -2px;
}
.art-title {
  margin-top: auto;
  font-size: 20px;
  font-weight: 600;
}
.art-line {
  display: block;
  background: #cde58d;
  width: 65%;
  height: 5px;
  border-radius: 3px;
  margin: 15px 0;
}
.art-pills {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: #b3cbb7;
}
.art-note {
  display: block;
  text-align: right;
  line-height: 1.6;
  margin-top: 50px;
  color: #6f866d;
  font-size: 12px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.page-heading h1 {
  font-size: 35px;
}
.notice {
  padding: 18px 22px;
  background: #e6edda;
  border: 1px solid #d6e0c9;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.7;
  margin-bottom: 22px;
}
.notice strong {
  display: block;
  color: #234f35;
  font-size: 13px;
}
.error {
  color: #9a432c;
  background: #f7ede6;
  padding: 12px;
  border-radius: 7px;
  line-height: 1.6;
  font-size: 12px;
  margin: 12px 0;
}
.error:empty {
  display: none;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.metric {
  background: white;
  border: 1px solid #e0e6d9;
  border-radius: 11px;
  padding: 22px;
}
.metric:first-child {
  background: #edf3df;
}
.metric .label {
  font-size: 11px;
  color: #6a806a;
}
.metric .value {
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 15px 0 10px;
}
.metric .note {
  font-size: 10px;
  color: #7a8b74;
  line-height: 1.6;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.card {
  background: white;
  border: 1px solid #dfe5d8;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 22px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.section-heading .eyebrow {
  margin-bottom: 8px;
}
.card > .muted {
  font-size: 12px;
  margin-bottom: 22px;
}
.badge {
  padding: 6px 9px;
  border-radius: 6px;
  background: #edf1e8;
  font-size: 10px;
  font-weight: 650;
  white-space: nowrap;
}
.badge.active {
  background: #dfedc7;
  color: #416025;
}
.badge.pending {
  background: #fcf0d8;
  color: #8d6c2e;
}
label {
  display: grid;
  gap: 8px;
  font-size: 11px;
  font-weight: 650;
  margin: 0 0 18px;
}
input,
select {
  border: 1px solid #d6dfce;
  background: #fff;
  border-radius: 7px;
  padding: 11px;
  color: #254b35;
  min-width: 0;
  width: 100%;
  font-size: 12px;
}
input:disabled,
select:disabled {
  background: #f2f4ef;
  color: #778675;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-row.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.form-row + .hint {
  margin-top: -5px;
  margin-bottom: 23px;
}
fieldset {
  border: 1px solid #dfe6d8;
  border-radius: 8px;
  padding: 15px;
  margin: 8px 0 23px;
}
legend {
  font-size: 11px;
  font-weight: 650;
  padding: 0 7px;
}
.choices .check {
  margin-bottom: 12px;
}
.choices .check:last-child {
  margin-bottom: 0;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  line-height: 1.6;
}
.check input {
  appearance: auto;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  padding: 0;
  accent-color: #315f3a;
}
.check small {
  display: block;
  color: #7f8d78;
  font-size: 10px;
  font-weight: 400;
}
.pause-card {
  background: #f9faf4;
}
.pause-card p:not(.eyebrow) {
  font-size: 12px;
  line-height: 1.8;
  color: #77806d;
  margin: 16px 0;
}
.pause-card .hint {
  font-size: 10px !important;
}
.steps {
  padding: 0;
  margin: 20px 0 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 22px;
}
.steps li {
  counter-increment: step;
  padding-left: 36px;
  position: relative;
  font-size: 12px;
  line-height: 1.7;
}
.steps li:before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 50%;
  background: #eef3e4;
  width: 24px;
  height: 24px;
  text-align: center;
  line-height: 24px;
  font-weight: 700;
  color: #6a8252;
}
.steps strong,
.steps span {
  display: block;
}
.steps span {
  color: #7c8a75;
  font-size: 11px;
  margin-top: 4px;
}
.spend-list {
  display: grid;
  gap: 12px;
}
.spend {
  padding: 18px;
  border: 1px solid #e0e6d9;
  border-radius: 9px;
}
.spend-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.spend h3 {
  font-size: 14px;
  line-height: 1.5;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.spend .amount {
  font-size: 18px;
  font-weight: 750;
  white-space: nowrap;
}
.spend .muted {
  font-size: 11px;
}
.spend .details {
  font-size: 11px;
  line-height: 1.7;
  color: #6e806c;
  margin: 12px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.spend .actions {
  margin-top: 14px;
}
.empty {
  padding: 20px;
  background: #f7f9f2;
  border-radius: 9px;
  color: #73846d;
  font-size: 12px;
  line-height: 1.8;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 22px;
}
footer {
  font-size: 10px;
  color: #819078;
  text-align: center;
  line-height: 1.8;
  padding: 12px;
}
dialog {
  width: min(570px, calc(100% - 30px));
  border: 1px solid #d5dfcd;
  border-radius: 14px;
  padding: 30px;
  color: #254a35;
  max-height: 85vh;
  overflow: auto;
}
dialog::backdrop {
  background: #183e3070;
  backdrop-filter: blur(3px);
}
dialog h2 {
  margin: 10px 0 20px;
}
dialog p {
  line-height: 1.75;
  font-size: 12px;
  color: #6d7e66;
}
dialog dl {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 12px;
  font-size: 12px;
  line-height: 1.6;
  margin: 25px 0;
}
dialog dt {
  color: #7a8b72;
}
dialog dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}
dialog .actions {
  justify-content: flex-end;
  margin-top: 25px;
}
.review-list {
  font-size: 12px;
  line-height: 1.7;
  margin: 15px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
#policy-message {
  font-size: 11px;
  margin: 15px 0;
}
#login-error {
  color: #9a432c;
  font-size: 12px;
  margin-top: 15px;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .side-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .login {
    gap: 30px;
  }
  .login h1 {
    font-size: 52px;
  }
  .illustration {
    padding: 55px 22px;
    min-height: 360px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
@media (max-width: 600px) {
  .header {
    padding: 18px 20px;
  }
  .header-note {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  main {
    padding: 25px 20px 40px;
  }
  .login {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: 0;
  }
  .login h1 {
    font-size: 52px;
  }
  .illustration {
    min-height: 300px;
  }
  .art-note {
    margin-top: 30px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 17px;
  }
  .metric .value {
    font-size: 22px;
  }
  .card {
    padding: 21px;
  }
  .side-column {
    display: block;
  }
  .form-row.three {
    grid-template-columns: 1fr;
  }
  .form-row.three label {
    margin-bottom: 0;
  }
  .form-row.three {
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 30px;
  }
  .section-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .pagination {
    flex-wrap: wrap;
  }
  .pagination .hint {
    order: 3;
  }
  .spend-top {
    flex-wrap: wrap;
    gap: 10px;
  }
  .intro {
    font-size: 15px;
  }
  .page-heading .actions {
    gap: 15px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
}
