:root {
  --paper: #f3f5f7;
  --white: #fff;
  --ink: #19292b;
  --muted: #637373;
  --body: #465d5b;
  --green: #176b58;
  --deep: #142d2c;
  --mint: #e4f2eb;
  --line: #e0e7e7;
  --gold: #b88134;
  --radius: 12px;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
:focus-visible {
  outline: 3px solid #7ab39b;
  outline-offset: 4px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -1px;
  font-weight: 650;
}
h2 {
  font-size: 17px;
  line-height: 1.6;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  line-height: 1.6;
  font-weight: 600;
}
p {
  line-height: 1.8;
}
small {
  font-size: 12px;
}
.app-shell {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 14px 18px;
  background: var(--deep);
  color: #e8f4ef;
  border-right: 1px solid #24413e;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.5;
}
.brand small {
  display: block;
  color: #acc4ba;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-top: 3px;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: #d4f1e1;
  color: #164e41;
  display: grid;
  place-items: center;
  font-size: 20px;
  font-weight: 500;
}
.nav-label {
  font-size: 11px;
  color: #a4bfb7;
  padding: 17px 13px 5px;
}
.nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 40px;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: #c4d8d1;
  transition:
    background 0.15s,
    color 0.15s;
}
.nav-link:hover {
  background: #25443e;
  color: #fff;
}
.nav-link.is-active {
  background: #d4f1e1;
  color: #164c3f;
  font-weight: 600;
}
.nav-symbol {
  display: inline-grid;
  place-items: center;
  width: 19px;
  font-size: 21px;
  line-height: 22px;
  font-weight: 400;
}
.sidebar-note {
  margin: auto 8px 14px;
  padding: 16px 0 0;
  font-size: 11px;
  color: #b6cfc5;
  line-height: 1.7;
}
.sidebar-note .status-dot {
  margin-right: 5px;
}
.sidebar-note p {
  font-size: 10px;
  color: #8c9a8c;
  margin-top: 5px;
}
.status-dot {
  display: inline-block;
  vertical-align: middle;
  width: 6px;
  height: 6px;
  background: #6a9a73;
  border-radius: 50%;
  flex-shrink: 0;
}
.admin-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 15px 9px 11px;
  border-top: 1px solid #35504a;
  min-width: 0;
}
.admin-avatar {
  width: 32px;
  height: 32px;
  background: #e5eee6;
  color: #65816a;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.admin-card strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
}
.admin-card small {
  display: block;
  color: #acc4ba;
  font-size: 10px;
  margin-top: 3px;
}
.logout-button {
  border: 0;
  background: transparent;
  color: #b6cfc5;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  border-radius: 9px;
  min-height: 35px;
}
.logout-button:hover {
  background: #25443e;
  color: #fff;
}
.main-shell {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  padding: 0 42px;
  gap: 14px;
}
.topbar-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--muted);
}
.topbar-label strong { color: var(--ink); font-weight: 600; }
.environment-pill {
  font-size: 11px;
  border: 1px solid #eee4d1;
  border-radius: 6px;
  padding: 6px 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #785d32;
  background: #fbf6ec;
  white-space: nowrap;
}
.main-content {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 34px 42px 48px;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-top: 7px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.8px;
  color: #6d917b;
  display: block;
  margin-bottom: 7px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 42px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  transition:
    opacity 0.15s,
    background 0.15s;
}
.button:hover {
  opacity: 0.86;
}
.button--primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 4px 12px #123e3009;
}
.button--secondary {
  background: var(--white);
  border-color: var(--line);
  color: var(--green);
}
.button--text {
  color: var(--body);
  background: transparent;
}
.button--full {
  width: 100%;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.test-notice {
  background: #f4f3e9;
  border: 1px solid #ece9d7;
  border-radius: 12px;
  padding: 13px 15px;
  color: #857b51;
  font-size: 11px;
}
.test-notice strong {
  font-size: 11px;
  font-weight: 600;
}
.test-notice p {
  font-size: 10px;
  margin-top: 5px;
  line-height: 1.8;
  color: #958c69;
}
.test-notice--inline {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 24px;
}
.test-notice--inline strong {
  white-space: nowrap;
  line-height: 1.8;
}
.test-notice--inline p {
  margin: 0;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.metric-card {
  position: relative;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  padding: 22px 24px;
  min-height: 152px;
  overflow: hidden;
}
.metric-label {
  display: block;
  color: #7b8d80;
  font-size: 11px;
  position: relative;
  z-index: 1;
}
.metric-value {
  display: block;
  font-size: 34px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.8px;
  margin: 11px 0 9px;
  position: relative;
  z-index: 1;
  overflow-wrap: anywhere;
}
.metric-value small {
  font-size: 11px;
  color: #8d9b8e;
  font-weight: 400;
  letter-spacing: 0;
  margin-left: 7px;
}
.metric-foot {
  font-size: 10px;
  color: #99a399;
  position: relative;
  z-index: 1;
}
.metric-card--featured {
  background: var(--deep);
  border-color: var(--deep);
  color: #fff;
}
.metric-card--featured .metric-label {
  color: #b2c9b7;
}
.metric-card--featured .metric-foot {
  color: #8eae9b;
}
.metric-decoration {
  position: absolute;
  right: 18px;
  top: 22px;
  color: #315b47;
  font-size: 91px;
  font-weight: 300;
  line-height: 1;
  transform: rotate(-15deg);
}
.section-block {
  margin-top: 27px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 15px;
}
.section-heading h2 {
  font-size: 15px;
}
.section-heading p {
  margin-top: 4px;
  font-size: 11px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.quick-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 21px 23px;
  transition:
    border-color 0.15s,
    transform 0.15s;
}
.quick-card:hover {
  border-color: #b9d0bd;
  transform: translateY(-2px);
}
.quick-icon {
  height: 36px;
  width: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 21px;
  background: var(--mint);
  color: #6f9776;
  margin-bottom: 14px;
}
.quick-icon--gold {
  color: #b58b45;
  background: #f7f0e2;
}
.quick-icon--blue {
  color: #6988a9;
  background: #eaf0f6;
}
.quick-card h3 {
  font-size: 13px;
}
.quick-card p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
  max-width: 90%;
  line-height: 1.8;
}
.quick-arrow {
  position: absolute;
  right: 22px;
  top: 26px;
  color: #b7c4b9;
  font-size: 17px;
}
.info-panel {
  padding: 19px 22px;
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-top: 25px;
  background: #eff4ed;
  border-color: #e4ecdf;
}
.info-symbol {
  display: grid;
  place-items: center;
  border: 1px solid #97b296;
  border-radius: 50%;
  color: #7d9c7a;
  font-size: 13px;
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  margin-top: 3px;
}
.info-panel h2 {
  font-size: 12px;
  color: #627d62;
}
.info-panel p {
  font-size: 10px;
  color: #81917b;
  margin-top: 5px;
  line-height: 1.9;
}
.count-pill {
  border-radius: 20px;
  background: #e9f0e8;
  color: #7a907a;
  font-size: 10px;
  padding: 7px 11px;
  white-space: nowrap;
}
.search-form {
  padding: 19px 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}
.search-field {
  flex: 1;
  max-width: 430px;
}
input:not([type="hidden"]) {
  width: 100%;
  min-width: 0;
  min-height: 43px;
  border: 1px solid #dfe7df;
  border-radius: 11px;
  padding: 11px 13px;
  background: #fbfcfa;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.5;
  outline: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
input:not([type="hidden"]):focus {
  border-color: #5e9d7f;
  box-shadow: 0 0 0 3px #16775b12;
}
input::placeholder {
  color: #a2aca1;
}
label {
  font-size: 11px;
  font-weight: 500;
  color: #657c6b;
  line-height: 1.7;
}
.table-scroll {
  position: relative;
  overflow: auto;
  overscroll-behavior-x: contain;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: #8d9d90;
  background: #fbfcfa;
  padding: 14px 22px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
td {
  padding: 19px 22px;
  vertical-align: middle;
  border-bottom: 1px solid #f0f3ee;
  color: #65776b;
  font-size: 11px;
  line-height: 1.7;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fdfefb;
}
td strong {
  color: #3e5949;
  font-weight: 500;
}
.user-cell {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 180px;
}
.user-cell strong {
  font-size: 12px;
}
.user-cell small {
  display: block;
  font-size: 9px;
  color: #9aa79c;
  margin-top: 4px;
}
.user-avatar {
  height: 33px;
  width: 33px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #edf3eb;
  color: #8ba48b;
  flex-shrink: 0;
  font-size: 13px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: 0;
  font-size: 11px;
}
.badge {
  display: inline-block;
  background: #f2f4f1;
  border-radius: 6px;
  padding: 4px 7px;
  font-size: 9px;
  font-weight: 500;
  color: #8e9c8c;
  white-space: nowrap;
}
.badge--green {
  background: #e9f2e9;
  color: #6b916b;
}
.date-cell {
  font-size: 10px;
  color: #97a194;
  min-width: 160px;
  font-variant-numeric: tabular-nums;
}
.id-cell {
  font-size: 9px;
  color: #94a18f;
  max-width: 230px;
  overflow-wrap: anywhere;
}
.table-link {
  color: var(--green);
  white-space: nowrap;
  font-size: 10px;
}
.table-link:hover {
  text-decoration: underline;
}
.footnote {
  font-size: 10px;
  color: #9ca79a;
  margin: 15px 3px;
  line-height: 1.8;
}
.empty-state {
  text-align: center;
  padding: 62px 24px;
  color: #758a79;
}
.empty-state h2,
.empty-state h3 {
  font-size: 14px;
  font-weight: 500;
}
.empty-state p {
  font-size: 11px;
  color: #9ca89c;
  max-width: 400px;
  margin: 9px auto 0;
}
.empty-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 27px;
  background: #f0f5ee;
  color: #92b092;
  border-radius: 16px;
  margin: 0 auto 17px;
}
.empty-state--compact {
  padding: 30px 22px;
}
.panel-heading {
  padding: 19px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}
.panel-heading h2 {
  font-size: 14px;
}
.panel-heading .muted {
  font-size: 10px;
}
.back-link {
  display: inline-block;
  font-size: 11px;
  color: #819581;
  margin-bottom: 18px;
}
.back-link:hover {
  color: var(--green);
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 19px;
}
.balance-card {
  padding: 26px;
  border-radius: var(--radius);
  background: var(--deep);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.balance-card .metric-label {
  color: #b1c9b8;
}
.balance-value {
  display: block;
  font-size: 39px;
  font-weight: 550;
  line-height: 1.4;
  letter-spacing: -1px;
  margin: 12px 0 20px;
}
.balance-value small {
  font-size: 12px;
  margin-left: 8px;
  color: #aac6b3;
  font-weight: 400;
}
.balance-breakdown {
  border-top: 1px solid #ffffff16;
  padding-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.balance-breakdown span {
  display: block;
  font-size: 10px;
  color: #9ab7a4;
}
.balance-breakdown strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-top: 7px;
  color: #e0eee2;
}
.balance-card p {
  font-size: 10px;
  color: #8fac99;
  line-height: 1.9;
  margin-top: 17px;
}
.account-panel {
  padding: 22px 24px;
}
.account-panel h2 {
  font-size: 14px;
  margin-bottom: 15px;
}
.key-values {
  margin: 0;
}
.key-values div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 9px 0;
  border-bottom: 1px solid #f0f3ed;
  font-size: 10px;
  line-height: 1.7;
}
.key-values div:last-child {
  border-bottom: 0;
}
.key-values dt {
  color: #92a08e;
  white-space: nowrap;
}
.key-values dd {
  margin: 0;
  text-align: right;
  color: #627760;
  overflow-wrap: anywhere;
  min-width: 0;
}
.gift-panel {
  padding: 21px 24px;
  margin-top: 25px;
}
.gift-panel .section-heading {
  margin-bottom: 17px;
}
.gift-form {
  display: flex;
  align-items: flex-end;
  gap: 13px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 185px;
}
.field--grow {
  flex: 1;
  width: auto;
  min-width: 0;
}
.gift-form .button {
  margin-bottom: 23px;
}
.form-hint {
  font-size: 10px;
  color: #97a48f;
  line-height: 1.8;
}
.amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.amount--positive {
  color: #559069;
}
.note-cell {
  min-width: 180px;
  max-width: 330px;
  overflow-wrap: anywhere;
}
.notice-bar {
  background: #ecf2e8;
  color: #819074;
  border: 1px solid #e3ebdc;
  border-radius: 12px;
  padding: 13px 17px;
  margin-bottom: 23px;
  font-size: 11px;
  line-height: 1.9;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.notice-bar strong {
  font-size: 11px;
  white-space: nowrap;
  font-weight: 600;
}
.conversion-value {
  font-size: 15px;
  color: #406e50;
  font-weight: 500;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.explanatory-panel {
  padding: 23px;
}
.explanatory-panel h2 {
  font-size: 14px;
}
.explanatory-panel p {
  font-size: 11px;
  color: #899981;
  margin-top: 10px;
  line-height: 1.9;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  max-width: 1440px;
  width: 100%;
  padding: 0 42px 25px;
  margin: auto;
  font-size: 9px;
  line-height: 1.7;
  color: #a7b09f;
}
.flash {
  padding: 13px 16px;
  border-radius: 12px;
  background: #e8f3ec;
  color: #477354;
  margin-bottom: 23px;
  border: 1px solid #d6e9da;
  font-size: 12px;
  line-height: 1.8;
}
.flash--error,
.flash--danger {
  background: #fbefeb;
  border-color: #f2ded5;
  color: #a15e4a;
}
.app-shell--public {
  grid-template-columns: 1fr;
}
.app-shell--public .main-content {
  max-width: 1120px;
}
.app-shell--public .page-footer {
  max-width: 1120px;
}
.login-wrap {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 72px;
  align-items: center;
  min-height: calc(100vh - 205px);
  padding: 30px 20px 50px;
}
.login-intro .eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 22px;
}
.login-intro h1 {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -1.3px;
}
.login-intro > p {
  font-size: 13px;
  color: #80927f;
  line-height: 2;
  margin-top: 23px;
}
.login-intro-note {
  font-size: 10px;
  color: #9aa88f;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 47px;
}
.login-panel {
  padding: 33px;
}
.login-logo {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: #e2ede1;
  color: #6b8b6e;
  font-size: 25px;
  margin-bottom: 25px;
}
.login-panel h2 {
  font-size: 24px;
  margin-bottom: 9px;
  font-weight: 600;
}
.login-panel > .muted {
  font-size: 11px;
  line-height: 1.9;
}
.stack-form {
  display: flex;
  flex-direction: column;
  margin-top: 25px;
  gap: 9px;
}
.stack-form .button {
  margin-top: 10px;
}
.login-panel > .form-hint {
  margin-top: 14px;
}
.login-panel .test-notice {
  margin-top: 27px;
}
.wrap-anywhere {
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: -100px;
  left: 20px;
  background: var(--green);
  color: #fff;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 13px;
}
.skip-link:focus {
  top: 12px;
}
@media (min-width: 1500px) {
  .main-content {
    padding-top: 43px;
  }
  .metrics-grid {
    gap: 20px;
  }
  .metric-card {
    padding: 26px 28px;
    min-height: 166px;
  }
}
@media (max-width: 1100px) {
  .app-shell {
    grid-template-columns: 194px minmax(0, 1fr);
  }
  .sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .main-content {
    padding: 28px;
  }
  .topbar {
    padding: 0 28px;
  }
  .page-footer {
    padding-left: 28px;
    padding-right: 28px;
  }
  .metric-card {
    padding: 20px;
  }
  .metrics-grid {
    gap: 12px;
  }
  .metric-value {
    font-size: 29px;
  }
  .quick-grid {
    gap: 12px;
  }
  .quick-card {
    padding: 20px;
  }
  .gift-form {
    flex-wrap: wrap;
  }
  .gift-form .button {
    margin-bottom: 0;
  }
  .field--grow {
    flex-basis: 250px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .login-wrap {
    gap: 35px;
    padding-left: 0;
    padding-right: 0;
    grid-template-columns: 1fr 380px;
  }
  .login-intro h1 {
    font-size: 35px;
  }
  .app-shell--public {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: relative;
    height: auto;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    display: block;
  }
  .brand {
    font-size: 15px;
    padding: 0 2px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
    border-radius: 11px;
  }
  .brand small {
    font-size: 9px;
  }
  .nav-label,
  .sidebar-note,
  .admin-card {
    display: none;
  }
  .nav-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 18px;
    gap: 5px;
  }
  .nav-link {
    justify-content: center;
    gap: 6px;
    padding: 10px 4px;
    min-height: 40px;
    font-size: 11px;
    border-radius: 10px;
  }
  .nav-symbol {
    font-size: 17px;
    width: 16px;
  }
  .sidebar > form {
    position: absolute;
    right: 14px;
    top: 18px;
  }
  .logout-button {
    width: auto;
    gap: 9px;
    font-size: 10px;
  }
  .topbar {
    height: 49px;
    padding: 0 20px;
  }
  .main-content {
    padding: 25px 18px 35px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 21px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading > .button {
    padding: 9px 11px;
    font-size: 10px;
    min-height: 36px;
    margin-top: 11px;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.4px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
  }
  .metric-card {
    padding: 18px;
    min-height: 136px;
    border-radius: 17px;
  }
  .metric-value {
    font-size: 29px;
    margin-top: 10px;
  }
  .metric-value small {
    font-size: 10px;
    margin-left: 4px;
  }
  .metric-foot {
    font-size: 9px;
  }
  .metric-label {
    font-size: 10px;
  }
  .metric-decoration {
    font-size: 67px;
    right: 13px;
    top: 37px;
  }
  .quick-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }
  .quick-card {
    padding: 17px 19px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    column-gap: 12px;
    align-items: center;
  }
  .quick-icon {
    grid-row: 1/3;
    margin: 0;
  }
  .quick-card h3 {
    font-size: 13px;
  }
  .quick-card p {
    font-size: 10px;
    margin-top: 3px;
  }
  .quick-arrow {
    right: 18px;
    top: 28px;
  }
  .section-block {
    margin-top: 23px;
  }
  .test-notice--inline {
    display: block;
    padding: 12px 14px;
  }
  .test-notice--inline p {
    margin-top: 4px;
  }
  .section-heading h2 {
    font-size: 14px;
  }
  .info-panel {
    padding: 17px;
  }
  .page-footer {
    padding: 0 20px 22px;
    font-size: 8px;
    display: block;
  }
  .page-footer span {
    display: block;
    margin-top: 5px;
  }
  .search-form {
    padding: 16px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .search-field {
    flex-basis: 180px;
  }
  .search-form .button {
    padding: 10px 14px;
  }
  .panel-heading {
    padding: 17px;
  }
  .panel-heading h2 {
    font-size: 13px;
  }
  th,
  td {
    padding: 14px 17px;
  }
  .empty-state {
    padding: 45px 20px;
  }
  .balance-card {
    padding: 23px;
  }
  .balance-value {
    font-size: 35px;
  }
  .account-panel {
    padding: 20px;
  }
  .gift-panel {
    padding: 19px;
  }
  .gift-form {
    display: block;
  }
  .field,
  .field--grow {
    width: 100%;
    margin-bottom: 14px;
  }
  .gift-form .button {
    width: 100%;
    margin-top: 3px;
  }
  .notice-bar {
    display: block;
    padding: 13px 15px;
    font-size: 10px;
  }
  .notice-bar strong {
    display: block;
    margin-bottom: 4px;
  }
  .two-columns {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .explanatory-panel {
    padding: 20px;
  }
  .login-wrap {
    display: block;
    min-height: 0;
    padding: 6px 0 20px;
  }
  .login-intro {
    padding: 6px 6px 26px;
  }
  .login-intro .eyebrow {
    font-size: 8px;
    margin-bottom: 13px;
  }
  .login-intro h1 {
    font-size: 31px;
    line-height: 1.45;
  }
  .login-intro > p {
    font-size: 11px;
    margin-top: 15px;
  }
  .login-intro-note {
    display: none;
  }
  .login-panel {
    padding: 26px;
  }
  .login-logo {
    width: 39px;
    height: 39px;
    font-size: 22px;
    margin-bottom: 20px;
  }
  .login-panel h2 {
    font-size: 22px;
  }
  .app-shell--public .topbar {
    height: 56px;
  }
  .flash {
    font-size: 11px;
  }
  .back-link {
    margin-bottom: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.link-user-id {
  display: block;
  max-width: 230px;
  overflow-wrap: anywhere;
  color: #94a18f;
  font-size: 9px;
  margin-top: 4px;
}

.wallet-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(0, 1.4fr);
  gap: 20px;
}
.wallet-card,
.wallet-adjustment {
  padding: 24px;
}
.wallet-card h2 {
  color: #d2e7d7;
}
.wallet-card .balance-value {
  margin: 12px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  font-variant-numeric: tabular-nums;
}
.wallet-card .wallet-seconds {
  margin: 2px 0 18px;
}
.wallet-breakdown,
.account-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}
.wallet-breakdown > div {
  border-top: 1px solid #ffffff33;
  padding-top: 10px;
}
.wallet-breakdown dt,
.account-facts dt {
  font-size: 12px;
  margin-bottom: 4px;
}
.wallet-breakdown dt {
  color: #d2e7d7;
}
.wallet-breakdown dd,
.account-facts dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.wallet-adjustment form {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.wallet-inputs {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  gap: 12px;
}
.wallet-inputs .field {
  width: auto;
  min-width: 0;
  margin-bottom: 0;
}
.wallet-adjustment output {
  padding: 12px;
  background: var(--mint);
  color: var(--deep);
  border-radius: 9px;
}
.wallet-adjustment button {
  justify-self: start;
}
.account-facts {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 12px 0;
}
.account-facts dt,
.ledger-duration {
  color: var(--body);
}
.detail-panel,
.account-options {
  padding: 20px 24px;
}
.account-options .gift-form {
  margin-top: 12px;
}
.account-options .gift-form .button {
  margin-bottom: 0;
}
.account-options summary {
  cursor: pointer;
  font-weight: 600;
}
.account-options[open] summary {
  margin-bottom: 14px;
}
.ledger-duration {
  display: block;
  margin-top: 3px;
}
@media (max-width: 900px) {
  .wallet-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .account-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 460px) {
  .wallet-inputs {
    grid-template-columns: minmax(0, 1fr);
  }
}

.workspace-label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 14px;
  padding: 10px;
  border: 1px solid #35504a;
  border-radius: 8px;
  background: #203b38;
  font-size: 12px;
}
.workspace-label > span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #35504a;
  color: #d4f1e1;
}
.workspace-label small {
  display: block;
  margin-top: 2px;
  color: #acc4ba;
  font-size: 10px;
}
.data-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--muted);
  font-size: 12px;
}
.data-strip strong { color: var(--ink); }
.data-strip a { margin-left: auto; }
.overview-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.overview-metrics .metric-card {
  min-height: 123px;
  padding: 17px 19px;
}
.overview-metrics .metric-label,
.overview-metrics .metric-foot { color: var(--muted); }
.overview-metrics .metric-foot { font-size: 11px; }
.overview-metrics .metric-value {
  margin: 7px 0 5px;
  font-size: 29px;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
}
.trend-range {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}
.trend-range a {
  border-radius: 5px;
  padding: 6px 10px;
  color: var(--body);
  font-size: 12px;
  white-space: nowrap;
}
.trend-range a:hover,
.trend-range a[aria-current] { background: var(--mint); color: var(--green); }
.trend-range a[aria-current] { font-weight: 650; }
.trend-body { padding: 17px 20px 13px; }
.trend-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.trend-title + p { margin-top: 4px; }
.trend-total {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 14px 0;
  font-size: 11px;
  color: var(--muted);
}
.trend-total strong {
  color: var(--deep);
  font-size: 29px;
  font-variant-numeric: tabular-nums;
}
.trend-chart {
  display: flex;
  align-items: end;
  gap: clamp(1px, 0.3vw, 4px);
  height: 92px;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0 calc(25% - 1px), #ecf0f0 calc(25% - 1px) 25%);
}
.trend-chart > span {
  flex: 1 1 0;
  min-width: 0;
  height: var(--level);
  border-radius: 2px 2px 0 0;
  background: #267c67;
}
.trend-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}
.trend-details { border-top: 1px solid var(--line); }
.trend-details summary {
  cursor: pointer;
  padding: 11px 20px;
  color: var(--body);
  font-size: 12px;
}
.trend-details .table-scroll { max-height: 256px; overflow: auto; }
.trend-details table { min-width: 0; }
.data-coverage {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.data-coverage > div {
  display: grid;
  gap: 4px;
  padding: 15px 17px;
  border-right: 1px solid var(--line);
}
.data-coverage > div:last-child { border-right: 0; }
.data-coverage strong { font-size: 13px; }
.data-coverage span { color: var(--ink); font-size: 18px; }
.data-coverage small { color: var(--muted); line-height: 1.5; }

@media (max-width: 1024px) {
  .overview-metrics,
  .data-coverage { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .data-coverage > div:nth-child(2n) { border-right: 0; }
  .data-coverage > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .workspace-label { display: none; }
  .nav-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-metrics .metric-card { padding: 13px; }
  .trends-heading { align-items: flex-start; flex-direction: column; }
  .data-strip a { margin-left: 0; }
}
