:root {
  font-family:
    Inter, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  color: #192d27;
  background: #f5f6f2;
  font-synthesis: none;
  --green: #173e37;
  --lime: #d6e7a7;
  --muted: #63726b;
  --line: #dbe1d9;
  --paper: #fff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: inherit;
  border-radius: 9px;
  padding: 10px 15px;
  font-weight: 650;
}
button:hover {
  background: #eef2e9;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button.primary {
  color: white;
  background: var(--green);
  border-color: var(--green);
}
button.primary:hover {
  background: #225247;
}
a {
  color: var(--green);
}
input:not([type="checkbox"]),
select,
textarea {
  border: 1px solid #c8d1c8;
  border-radius: 8px;
  background: white;
  padding: 11px 12px;
  min-width: 0;
  color: inherit;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible {
  outline: 3px solid #90b684;
  outline-offset: 2px;
}
label {
  display: grid;
  gap: 7px;
  font-size: 0.89rem;
  font-weight: 650;
}
form {
  display: grid;
  gap: 16px;
}
.hint,
small {
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  letter-spacing: -0.065em;
  line-height: 1.16;
}
h2 {
  font-size: 1.21rem;
  letter-spacing: -0.045em;
}
h3 {
  font-size: 1rem;
}
p {
  line-height: 1.65;
}
button svg,
.icon {
  width: 19px;
  height: 19px;
  vertical-align: middle;
  flex: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 760;
  letter-spacing: -0.055em;
  font-size: 1.14rem;
}
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.brand small {
  border-left: 1px solid #bcc8bb;
  padding-left: 10px;
  font-size: 0.78rem;
  font-weight: 600;
}
.auth-page {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(310px, 1.07fr) minmax(320px, 1fr);
}
.intro {
  background: #173e37;
  color: white;
  padding: clamp(28px, 5vw, 84px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 35px;
  overflow: hidden;
}
.intro .brand img {
  background: #d6e7a7;
  border: 1px solid #749081;
}
.intro h1 {
  font-size: clamp(2.8rem, 5.6vw, 5.3rem);
  margin: 12px 0 18px;
}
.intro p {
  color: #d1ded4;
  max-width: 330px;
  word-break: keep-all;
}
.folio {
  position: relative;
  isolation: isolate;
  width: min(100%, 420px);
  height: clamp(130px, 25vh, 240px);
  margin: 10px auto;
}
.folio:before,
.folio:after,
.folio .sheet {
  content: "";
  position: absolute;
  inset: 15% 8% 12% 18%;
  border: 1px solid #99af94;
  border-radius: 12px;
  transform: rotate(-10deg) skewX(12deg);
  background: #517464;
  box-shadow: 0 12px 32px #05271c44;
}
.folio:after {
  transform: translate(8px, -13px) rotate(-5deg) skewX(9deg);
  background: #a9c39c;
}
.folio .sheet {
  z-index: 2;
  transform: translate(12px, -24px) rotate(-2deg) skewX(6deg);
  background:
    repeating-linear-gradient(0deg, transparent 0 25%, #45644c33 25% 26%),
    linear-gradient(90deg, #d5e6ae 0 17%, #acc29a 17% 17.6%, #d5e6ae 17.6%);
  overflow: hidden;
}
.sheet:after {
  content: "";
  position: absolute;
  right: 10%;
  top: 16%;
  height: 60%;
  width: 37%;
  background: linear-gradient(
    90deg,
    #547b61 0 18%,
    transparent 18% 26%,
    #43694f 26% 48%,
    transparent 48% 57%,
    #315740 57% 79%,
    transparent 79%
  );
  clip-path: polygon(
    0 58%,
    26% 58%,
    26% 32%,
    57% 32%,
    57% 4%,
    100% 4%,
    100% 100%,
    0 100%
  );
}
.intro footer {
  color: #c8d6cb;
  font-size: 0.8rem;
}
.auth-box {
  align-self: center;
  width: min(100%, 450px);
  padding: 42px;
  margin: auto;
}
.auth-box h2 {
  font-size: 1.85rem;
}
.auth-box > p {
  margin: 10px 0 27px;
}
#auth-message:empty {
  display: none;
}
#auth-message {
  color: var(--muted);
  font-size: 0.89rem;
}
.textbtn {
  background: none;
  border: none;
  padding: 6px 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.topbar {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.topinner,
.page {
  width: min(100%, 1260px);
  margin: auto;
  padding: 0 clamp(16px, 4vw, 58px);
}
.topinner {
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.actions,
.tools,
.filters,
.pills,
.row-end,
.inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.subnav {
  border-bottom: 1px solid var(--line);
  background: white;
}
.tabs {
  display: flex;
  gap: 24px;
  overflow: auto;
}
.tabs button {
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  background: none;
  padding: 14px 0 11px;
  color: var(--muted);
  white-space: nowrap;
}
.tabs button.active {
  color: var(--green);
  border-color: var(--green);
}
.page.body {
  padding-top: 35px;
  padding-bottom: 64px;
  display: grid;
  gap: 22px;
}
.sectionhead,
.cardhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.sectionhead p {
  margin-top: 6px;
}
.cards {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 14px;
}
.card,
.panel,
.accountline {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
}
.metric {
  padding: 23px;
  min-height: 136px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
}
.metric.main {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.metric.main small {
  color: #d7e5ce;
}
.metric strong {
  font-size: clamp(1.45rem, 3.5vw, 2.35rem);
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
}
.metric strong em {
  font-size: 0.53em;
  font-style: normal;
  margin-left: 4px;
}
.metric-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 650;
}
.panel {
  padding: 22px;
}
.panel .cardhead {
  margin-bottom: 18px;
}
.balances {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding-bottom: 2px;
}
.accountline {
  padding: 12px 16px;
  min-width: 210px;
  display: grid;
  gap: 4px;
}
.amount {
  font-variant-numeric: tabular-nums;
  font-weight: 730;
}
.incoming {
  color: #14704f;
}
.outgoing {
  color: #985137;
}
.pill {
  display: inline-block;
  background: #edf3e9;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 0.75rem;
  font-weight: 650;
}
.tablewrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  font-size: 0.9rem;
  width: 100%;
}
th {
  text-align: left;
  background: #f3f5f0;
  font-size: 0.76rem;
  font-weight: 650;
  color: #55665d;
}
td,
th {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
td:last-child {
  text-align: right;
}
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 8px;
  padding: 45px 16px;
}
.empty .symbol {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #eef3e8;
  color: #65825e;
  border-radius: 13px;
  margin-bottom: 4px;
}
.empty .icon {
  width: 22px;
  height: 22px;
}
.row-end {
  justify-content: flex-end;
  margin-top: 14px;
}
.managegrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.managegrid .panel {
  min-width: 0;
}
.settingsrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.settingsrow strong,
.settingsrow small {
  display: block;
}
.settingsrow small {
  overflow-wrap: anywhere;
}
dialog {
  color: inherit;
  border: 1px solid var(--line);
  border-radius: 16px;
  width: min(490px, calc(100% - 30px));
  max-height: 88svh;
  padding: 24px;
  box-shadow: 0 20px 90px #0c32252b;
}
dialog::backdrop {
  background: #10251ed1;
}
dialog h2 {
  margin-bottom: 14px;
}
dialog p {
  margin-bottom: 12px;
}
dialog .dismiss {
  float: right;
  padding: 2px 6px;
  border: 0;
  font-size: 1.4rem;
}
dialog .details {
  display: grid;
  grid-template-columns: 6em 1fr;
  gap: 9px;
  margin: 16px 0;
  font-size: 0.9rem;
}
dialog dt {
  color: var(--muted);
}
dialog dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.check {
  display: flex;
  align-items: flex-start;
}
.check input {
  margin-top: 3px;
}
.error {
  color: #982d22;
  font-size: 0.89rem;
}
.secret {
  background: #f5f6f2;
  border: 1px solid var(--line);
  padding: 13px;
  overflow-wrap: anywhere;
  user-select: all;
  border-radius: 8px;
}
#notice:empty {
  display: none;
}
#notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #173e37;
  color: white;
  border-radius: 9px;
  padding: 12px 18px;
  z-index: 10;
  max-width: 90%;
  width: max-content;
}
.warn {
  background: #fff4d8;
  color: #674d14;
  border-radius: 8px;
  padding: 10px;
  font-size: 0.85rem;
}
.filters select,
.filters input {
  padding: 8px 10px;
}
.pager {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 12px;
}
.iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.break {
  overflow-wrap: anywhere;
}
@media (max-width: 760px) {
  .auth-page {
    display: block;
  }
  .intro {
    padding: 24px;
    gap: 22px;
    position: relative;
    min-height: 210px;
    justify-content: flex-start;
  }
  .intro h1 {
    font-size: 2.25rem;
    margin: 0 0 6px;
  }
  .intro .folio {
    position: absolute;
    right: -6%;
    bottom: 0;
    width: 35%;
    height: 95px;
    opacity: 0.55;
  }
  .intro p {
    font-size: 0.86rem;
    width: 70%;
  }
  .intro footer {
    display: none;
  }
  .auth-box {
    padding: 30px 22px;
  }
  .topinner {
    height: 58px;
  }
  .brand {
    font-size: 1.02rem;
  }
  .brand small {
    display: none;
  }
  .topinner .actions {
    gap: 6px;
  }
  .topinner button {
    padding: 7px 9px;
    font-size: 0.8rem;
  }
  .tabs {
    gap: 20px;
  }
  .page.body {
    padding-top: 22px;
    gap: 15px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 9px;
  }
  .metric.main {
    grid-column: 1/-1;
    min-height: 95px;
  }
  .metric {
    min-height: 100px;
    padding: 15px;
  }
  .panel {
    padding: 15px;
  }
  .sectionhead {
    align-items: flex-start;
  }
  .managegrid {
    grid-template-columns: 1fr;
  }
  .sectionhead .tools {
    width: 100%;
  }
  .widecol {
    display: none;
  }
  td,
  th {
    padding: 10px 6px;
  }
  .filters {
    gap: 5px;
    max-width: 100%;
  }
  .filters select,
  .filters input {
    max-width: 100%;
  }
  .sectionhead p {
    font-size: 0.85rem;
  }
  .accountline {
    min-width: 180px;
  }
  .metric strong {
    font-size: 1.6rem;
  }
  .sectionhead .tools button {
    font-size: 0.85rem;
  }
}
.intro .brand small {
  color: #cad8cc;
}
.page.body {
  grid-template-columns: minmax(0, 1fr);
}
.panel {
  min-width: 0;
}
