:root {
  --paper: #f6f7f0;
  --card: #fffef9;
  --ink: #252e26;
  --muted: #778074;
  --line: #dce1d3;
  --green: #bdf16c;
  --dark: #294c36;
  --good: #40734a;
  --bad: #b84f4f;
  --yellow: #ffe5a1;
  --mono: 'Courier New', monospace;
  --sans: Inter, 'Microsoft YaHei', 'PingFang SC', sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button,
a,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 10px 15px;
  border-radius: 0;
}
button:hover {
  border-color: #829473;
  background: #edf3e5;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #78a845;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
.muted,
small {
  color: var(--muted);
}
.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 3px;
}
.brand img {
  width: 40px;
  height: 40px;
  image-rendering: pixelated;
}
.brand small {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-top: 5px;
  font-weight: 400;
}
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 222px;
  background: #f0f2e8;
  border-right: 1px solid var(--line);
  padding: 31px 23px;
  display: flex;
  flex-direction: column;
}
.nav-caption {
  font-size: 10px;
  letter-spacing: 1px;
  color: #8b9485;
  margin: 49px 0 17px;
}
nav {
  display: grid;
  gap: 9px;
}
nav button {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 14px 12px;
  font-size: 13px;
  display: flex;
  gap: 14px;
  align-items: center;
}
nav button span {
  font-family: var(--mono);
  font-size: 20px;
}
nav button.selected {
  background: var(--green);
  border: 1px solid #91b751;
  box-shadow: 3px 3px 0 #b4c29e;
  font-weight: 700;
}
.sidebar-bottom {
  margin-top: auto;
}
.sidebar {
  overflow-y: auto;
}
.identity > div:not(.avatar) {
  min-width: 0;
  flex: 1;
  overflow-wrap: anywhere;
}
.sidebar-bottom > p {
  font-size: 11px;
  margin: 18px 0 6px;
}
.sidebar-bottom > small {
  font-size: 9px;
  letter-spacing: 1px;
}
.tiny-island {
  font-family: var(--mono);
  font-size: 23px;
  letter-spacing: 4px;
  color: #8bac69;
  margin-top: 35px;
}
.identity {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 25px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.avatar {
  height: 35px;
  width: 35px;
  display: grid;
  place-items: center;
  background: #e1e9d3;
  border: 1px solid #bfcbb1;
  font-weight: 700;
}
.identity b {
  font-size: 12px;
}
.identity small {
  display: block;
  font-size: 10px;
  margin-top: 5px;
}
.identity button {
  flex-shrink: 0;
  margin-left: auto;
  background: transparent;
  border: 0;
  padding: 5px;
  font-size: 21px;
}
.workspace {
  margin-left: 222px;
}
.topbar {
  height: 82px;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.topbar > div {
  display: flex;
  align-items: center;
  gap: 13px;
}
.pixel-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #7b9b59;
  box-shadow: 3px 3px 0 #c4d8aa;
}
.divider {
  color: #bac1b3;
}
.top-actions {
  gap: 20px !important;
}
.tag {
  font: 10px var(--mono);
  letter-spacing: 1px;
  padding: 6px 9px;
  background: #e9eedf;
  border: 1px solid #d3ddc6;
  white-space: nowrap;
}
.currency-control {
  display: flex;
  align-items: center;
  margin: 0;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}
.currency-control select {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  padding: 8px 2px;
}
main {
  max-width: 1520px;
  margin: auto;
  padding: 33px 38px 20px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}
.eyebrow {
  font: 10px var(--mono);
  color: #7e8971;
  letter-spacing: 2px;
  margin: 0 0 11px;
}
h1 {
  font-size: 27px;
  margin: 0 0 10px;
  letter-spacing: 1px;
}
h2 {
  font-size: 16px;
  letter-spacing: 0.4px;
  margin: 0;
}
h3 {
  font-size: 13px;
  margin: 0;
}
.page-heading p:not(.eyebrow) {
  font-size: 12px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}
.actions {
  display: flex;
  gap: 10px;
}
.primary {
  background: var(--green);
  border: 1px solid #829b61;
  box-shadow: 3px 3px 0 #d3dfc2;
  font-weight: 600;
}
.primary:hover {
  background: #cafa85;
}
.secondary {
  background: var(--card);
}
.stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 17px;
  margin-bottom: 24px;
}
.stat {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 22px 20px;
  min-height: 147px;
  position: relative;
}
@media (min-width: 1201px) {
  .overview-stats {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .overview-stats > .stat {
    grid-column: span 2;
  }
  .overview-stats > .stat:nth-child(-n + 2) {
    grid-column: span 3;
  }
}
.stat.main-stat {
  background: #e9f3d9;
  border: 1px solid #b8cea0;
  box-shadow: 3px 3px 0 #dce6d0;
}
.stat .label {
  font-size: 11px;
  color: #66735d;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.stat .value {
  font: 700 29px var(--mono);
  letter-spacing: -1.5px;
  margin: 21px 0 14px;
  white-space: nowrap;
}
.stat .value em {
  font-size: 18px;
  font-style: normal;
  margin-right: 5px;
  vertical-align: 4px;
  font-weight: 400;
}
.stat small {
  font-size: 10px;
}
.stat .corner {
  position: absolute;
  width: 7px;
  height: 7px;
  background: var(--green);
  top: -1px;
  left: -1px;
}
.positive {
  color: var(--good);
}
.negative {
  color: var(--bad);
}
.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(260px, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}
.panel {
  border: 1px solid var(--line);
  background: var(--card);
  min-width: 0;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 21px 23px;
  gap: 10px;
}
.panel-heading small {
  font: 10px var(--mono);
}
.panel-heading a,
.link-button {
  font-size: 11px;
  color: #657853;
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}
.chart-top {
  display: flex;
  justify-content: space-between;
  padding: 0 24px;
  align-items: center;
}
.chart-number {
  font: 28px var(--mono);
}
.chart-number small {
  font: 11px var(--sans);
  display: block;
  margin-top: 9px;
}
.chart-key {
  font-size: 10px;
  color: var(--muted);
}
.chart-key i {
  display: inline-block;
  width: 12px;
  height: 3px;
  background: #75a149;
  vertical-align: 3px;
  margin-right: 6px;
}
.chart {
  padding: 5px 18px 15px;
  height: 240px;
}
.chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.chart text {
  fill: #909886;
  font: 10px var(--mono);
}
.chart line {
  stroke: #e3e7dc;
  stroke-dasharray: 3 5;
}
.chart .area {
  fill: #edf4df;
}
.chart .series {
  fill: none;
  stroke: #71994b;
  stroke-width: 2.5;
  stroke-linejoin: miter;
}
.chart-empty {
  height: 220px;
  display: grid;
  place-content: center;
  text-align: center;
  color: var(--muted);
  line-height: 2;
  font-size: 12px;
}
.member-stack {
  padding: 0 23px 10px;
}
.member-row {
  padding: 16px 0;
  border-top: 1px solid #edf0e8;
}
.member-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}
.member-meta b {
  font-size: 12px;
}
.member-meta .mono {
  margin-left: auto;
  font-size: 12px;
}
.member-row .avatar {
  width: 29px;
  height: 29px;
  font-size: 12px;
}
.progress-track {
  height: 6px;
  background: #edf0e7;
  margin: 11px 0 9px;
  overflow: hidden;
}
.progress-track span {
  display: block;
  height: 100%;
  background: #9fc678;
}
.member-caption {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--muted);
}
.panel-foot {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  padding: 13px 23px;
  background: #f7f8f1;
  border-top: 1px solid var(--line);
}
.table-scroll {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  white-space: nowrap;
}
th {
  color: #92998a;
  text-align: right;
  font-size: 10px;
  letter-spacing: 0.3px;
  font-weight: 400;
  background: #fafbf5;
  padding: 13px 23px;
  border-top: 1px solid #edf0e5;
  border-bottom: 1px solid #edf0e5;
}
td {
  text-align: right;
  padding: 17px 23px;
  font: 12px var(--mono);
  border-bottom: 1px solid #edf0e5;
}
td:first-child,
th:first-child {
  text-align: left;
}
tr:last-child td {
  border-bottom: 0;
}
.symbol {
  display: flex;
  gap: 11px;
  align-items: center;
}
.symbol-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  background: #eaf0e2;
  border: 1px solid #d9e2cf;
  font-weight: 700;
}
.symbol-text b {
  display: block;
  text-align: left;
  font-size: 12px;
}
.symbol-text small {
  display: block;
  text-align: left;
  font: 10px var(--sans);
  margin-top: 5px;
}
.pill {
  font: 9px var(--mono);
  background: #edf1e4;
  padding: 4px 6px;
  border: 1px solid #e0e6d4;
}
.under-table {
  display: flex;
  justify-content: space-between;
  padding: 14px 23px;
  font-size: 10px;
  color: #89927f;
  border-top: 1px solid var(--line);
}
footer {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #929b88;
  padding: 25px 0 2px;
  gap: 16px;
  line-height: 1.8;
}
.notice {
  background: #f0f4e7;
  border: 1px solid #dce4d0;
  padding: 14px 17px;
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 18px;
}
.notice.warning {
  background: #fff7df;
  border-color: #e9d69c;
  color: #856728;
}
.notice.danger {
  background: #f9eeeb;
  border-color: #e8c5bb;
  color: #93513e;
}
.error {
  color: var(--bad);
  font-size: 12px;
  line-height: 1.7;
}
.empty {
  padding: 45px 22px;
  text-align: center;
  color: var(--muted);
  line-height: 2;
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  margin-bottom: 8px;
}
.flow-row {
  padding: 19px 23px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.flow-row p {
  margin: 6px 0 0;
  font-size: 11px;
  color: var(--muted);
}
.stack {
  display: grid;
  gap: 23px;
}
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.info-body {
  padding: 0 23px 24px;
  font-size: 12px;
  line-height: 2;
  color: #67715f;
}
.info-body p {
  margin: 0 0 15px;
}
.info-body b {
  color: var(--ink);
}
.formula {
  background: #eef3e5;
  font: 12px var(--mono);
  padding: 15px;
  line-height: 2.2;
  margin: 16px 0;
}
.audit-row {
  padding: 13px 23px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  overflow-wrap: anywhere;
}
.audit-row small {
  margin-right: 15px;
}
label {
  display: grid;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 17px;
}
input,
textarea,
select {
  width: 100%;
  background: #fffef9;
  border: 1px solid #d2dac6;
  padding: 11px 12px;
  border-radius: 0;
}
input::placeholder {
  color: #a0a795;
  font-size: 12px;
}
textarea {
  min-height: 76px;
  resize: vertical;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
.full {
  width: 100%;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 15px;
}
.hint {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0 0 18px;
}
.check-label {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  line-height: 1.7;
}
.check-label input {
  width: auto;
  margin-top: 4px;
}
dialog {
  width: min(680px, calc(100% - 32px));
  max-height: 90vh;
  border: 1px solid #768966;
  background: var(--card);
  padding: 0;
  box-shadow: 8px 8px 0 #26372530;
  color: var(--ink);
}
dialog::backdrop {
  background: #28332388;
}
.dialog-header {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dialog-header button {
  font-size: 23px;
  background: transparent;
  border: 0;
  padding: 0 5px;
}
#modal-content {
  padding: 23px 25px;
}
.opening-row {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.opening-row h3 {
  margin-bottom: 12px;
}
.opening-row .form-grid {
  grid-template-columns: 1fr 1fr 1fr;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 28px;
  max-width: 420px;
  z-index: 20;
  padding: 17px 24px;
  background: var(--ink);
  color: #e6f7cb;
  box-shadow: 4px 4px 0 #9fbb7e;
  font-size: 12px;
  line-height: 1.7;
}
.login-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.login-art {
  padding: 46px 9%;
  background: #edf2df;
  border-right: 1px solid #d6e0c5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}
.login-art .brand span {
  font: 10px var(--mono);
  letter-spacing: 2px;
}
.login-art h1 {
  font-size: 44px;
  line-height: 1.5;
  letter-spacing: 3px;
}
.login-art p:not(.eyebrow) {
  line-height: 2.2;
  color: #728062;
  font-size: 13px;
}
.login-art small {
  font: 9px var(--mono);
  letter-spacing: 1px;
}
.login-panel {
  width: 100%;
  max-width: 410px;
  margin: auto;
  padding: 50px 24px;
}
.login-panel h2 {
  font-size: 27px;
  margin-top: 25px;
}
.login-panel > p {
  margin: 14px 0 34px;
  font-size: 13px;
}
.login-panel form .primary {
  margin-top: 9px;
  display: flex;
  justify-content: space-between;
  padding: 14px;
}
.login-remember {
  margin: 4px 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: var(--card);
  cursor: pointer;
  font-size: 14px;
}
.login-remember input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}
.login-remember strong,
.login-remember small {
  display: block;
}
.login-remember small {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.mobile-logout {
  display: none;
}
.login-foot {
  font-size: 11px !important;
  line-height: 2;
  color: #919a85;
}
.pixel-island {
  position: relative;
  width: 310px;
  height: 180px;
  margin: 20px 0 30px;
}
.pixel-sun {
  position: absolute;
  top: 5px;
  right: 35px;
  width: 40px;
  height: 40px;
  background: #efdc85;
  box-shadow:
    -6px 6px 0 #efdc85,
    6px 6px 0 #efdc85,
    0 12px 0 #efdc85;
}
.pixel-mountain {
  position: absolute;
  bottom: 35px;
  left: 20px;
  width: 210px;
  height: 65px;
  background: #bfd19e;
  clip-path: polygon(
    0 70%,
    15% 70%,
    15% 40%,
    28% 40%,
    28% 15%,
    43% 15%,
    43% 0,
    59% 0,
    59% 30%,
    73% 30%,
    73% 55%,
    88% 55%,
    88% 80%,
    100% 80%,
    100% 100%,
    0 100%
  );
}
.pixel-water {
  position: absolute;
  bottom: 15px;
  left: 0;
  width: 300px;
  height: 7px;
  background: #a5c4a4;
  box-shadow:
    15px 14px 0 -1px #c0d1b3,
    -10px 28px 0 -2px #c0d1b3;
}
.pixel-boat {
  position: absolute;
  bottom: 19px;
  right: 33px;
  font: 58px var(--mono);
  color: #416947;
  z-index: 2;
  line-height: 1;
}
.opening-total {
  font: 16px var(--mono);
  padding: 17px 0;
}
.inline-gap {
  margin-top: 23px;
}
.mobile-only {
  display: none;
}
@media (min-width: 1600px) {
  main {
    padding-top: 43px;
  }
  .stat {
    min-height: 165px;
  }
  .stat .value {
    font-size: 33px;
  }
  .chart {
    height: 275px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 188px;
    padding: 27px 17px;
  }
  .workspace {
    margin-left: 188px;
  }
  main {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .stats {
    gap: 12px;
  }
  .stat {
    padding: 18px 15px;
  }
  .stat .value {
    font-size: 24px;
  }
  .grid-main {
    grid-template-columns: 1.6fr 1fr;
    gap: 16px;
  }
  td,
  th {
    padding-left: 16px;
    padding-right: 16px;
  }
}
@media (max-width: 900px) {
  .stats {
    grid-template-columns: 1fr 1fr;
  }
  .grid-main {
    grid-template-columns: 1fr;
  }
  .topbar > div:first-child {
    display: none;
  }
  .topbar {
    justify-content: flex-end;
    height: 66px;
  }
  .two-col {
    grid-template-columns: 1fr;
  }
  .login-layout {
    grid-template-columns: 1fr 1fr;
  }
  .login-art {
    padding: 30px;
  }
  .login-art .brand span {
    display: none;
  }
  .login-art h1 {
    font-size: 30px;
  }
  .pixel-island {
    transform: scale(0.8);
    transform-origin: left;
  }
}
@media (max-width: 650px) {
  .sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
  }
  .mobile-logout {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
    flex-shrink: 0;
    font-size: 13px;
    white-space: nowrap;
  }
  .sidebar {
    position: static;
    width: auto;
    padding: 17px 16px 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand {
    font-size: 20px;
  }
  .sidebar .brand small {
    font-size: 8px;
  }
  .sidebar .brand img {
    width: 33px;
    height: 33px;
  }
  .nav-caption,
  .sidebar-bottom {
    display: none;
  }
  nav {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 17px 0 10px;
  }
  nav button {
    padding: 8px 10px;
    font-size: 11px;
    white-space: nowrap;
    gap: 6px;
  }
  nav button span {
    font-size: 15px;
  }
  .workspace {
    margin-left: 0;
  }
  .topbar {
    height: 52px;
    padding: 0 17px;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
    gap: 8px !important;
  }
  main {
    padding: 23px 16px 16px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 22px;
  }
  .page-heading .actions {
    flex-direction: column;
    gap: 7px;
  }
  h1 {
    font-size: 22px;
  }
  .page-heading p:not(.eyebrow) {
    max-width: 235px;
    font-size: 11px;
  }
  .eyebrow {
    font-size: 9px;
    letter-spacing: 1px;
  }
  .actions button {
    font-size: 11px;
    padding: 9px;
  }
  .stats {
    gap: 10px;
    margin-bottom: 17px;
  }
  .stat {
    padding: 17px 12px;
    min-height: 132px;
  }
  .stat .value {
    font-size: 23px;
    margin: 18px 0 11px;
  }
  .stat .value em {
    font-size: 14px;
  }
  .stat small {
    font-size: 9px;
  }
  .stat .label {
    font-size: 10px;
  }
  .grid-main {
    gap: 17px;
  }
  .panel-heading {
    padding: 18px 16px;
  }
  h2 {
    font-size: 14px;
  }
  .chart-top {
    padding: 0 16px;
  }
  .chart {
    height: 210px;
    padding-left: 9px;
    padding-right: 9px;
  }
  .member-stack {
    padding-left: 16px;
    padding-right: 16px;
  }
  .panel-foot {
    padding: 12px 16px;
  }
  .under-table {
    padding: 13px 16px;
    font-size: 9px;
    gap: 12px;
  }
  footer {
    flex-direction: column;
    gap: 5px;
  }
  .flow-row {
    align-items: flex-start;
    padding: 16px;
    gap: 12px;
  }
  .flow-row .actions {
    flex-direction: column;
  }
  .form-grid,
  .opening-row .form-grid {
    grid-template-columns: 1fr;
  }
  .dialog-header {
    padding: 18px;
  }
  #modal-content {
    padding: 18px;
  }
  .login-layout {
    display: block;
  }
  .login-art {
    min-height: auto;
    padding: 28px;
  }
  .login-art > div:nth-child(2),
  .login-art > small {
    display: none;
  }
  .login-panel {
    padding: 45px 25px;
  }
  .currency-control {
    font-size: 10px;
  }
  .notice {
    font-size: 11px;
  }
  #toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .two-col {
    gap: 17px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button {
    transition: background 0.12s;
  }
  #page-content {
    animation: appear 0.2s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0.5;
      transform: translateY(4px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
.currency-control {
  white-space: nowrap;
}
.currency-control select {
  width: auto;
}
.actions button {
  white-space: nowrap;
}
@media (max-width: 650px) {
  .page-heading {
    flex-direction: column;
  }
  .page-heading .actions {
    flex-direction: row;
  }
  .page-heading p:not(.eyebrow) {
    max-width: none;
  }
  .chart {
    height: 185px;
  }
}
.flow-summary {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 23px;
  padding: 18px 20px;
  background: #e9f3d9;
  border: 1px solid #cddcbb;
}
.flow-summary span {
  font-size: 12px;
}
.flow-summary b {
  font: 20px var(--mono);
  margin-left: 8px;
}
.flow-filters {
  justify-content: flex-start;
  flex-wrap: wrap;
}
.flow-filters label {
  margin: 0;
  min-width: 160px;
}
.flow-filters small {
  margin-left: auto;
}
.block {
  display: block;
  margin-top: 8px;
  font-size: 10px;
}
.flow-ops {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}
.funding-table td {
  vertical-align: top;
  font-size: 11px;
}
.funding-table td:first-child {
  min-width: 175px;
}
.funding-table details {
  margin-top: 8px;
  font: 10px var(--sans);
  max-width: 180px;
}
.funding-table details p {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.funding-table summary {
  cursor: pointer;
  color: #718164;
}
.flow-pagination {
  align-items: center;
}
.flow-pagination button {
  font-size: 11px;
  padding: 8px 10px;
  margin-left: 6px;
}
#flow-badge {
  margin-left: auto;
  color: inherit;
}
@media (max-width: 650px) {
  .flow-summary {
    gap: 14px;
  }
  .flow-filters label {
    min-width: 130px;
  }
  .flow-ops button {
    font-size: 11px;
  }
}
.account-strip {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
  margin-bottom: 22px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  background: var(--card);
}
.account-strip > span {
  display: grid;
  gap: 9px;
}
.account-strip small {
  font-size: 10px;
}
.account-strip b {
  font-size: 12px;
  font-weight: 500;
}
@media (max-width: 650px) {
  .account-strip {
    gap: 18px;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

.stats.daily-stats {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.daily-stats small {
  line-height: 1.7;
}
@media (max-width: 650px) {
  .stats.daily-stats {
    grid-template-columns: 1fr;
  }
}

/* Keep pixel shapes; use legible system fonts for text and financial figures. */
.avatar:has(.pixel-avatar),
.member-row .avatar:has(.pixel-avatar) {
  width: 44px;
  height: 44px;
  overflow: hidden;
}
.pixel-avatar {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
}
.profile-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.profile-identity .avatar:has(.pixel-avatar) {
  width: 64px;
  height: 64px;
}
.return-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 0 23px 12px;
  font-size: 14px;
}
.return-summary b {
  font-variant-numeric: tabular-nums;
}
.account-return {
  color: #40734a;
}
.benchmark-return {
  color: #395f9a;
}
.chart .benchmark-series {
  fill: none;
  stroke: #395f9a;
  stroke-width: 2.5;
  stroke-dasharray: 7 4;
}
.return-point {
  fill: transparent;
  stroke: none;
  cursor: crosshair;
}
.return-point:hover {
  fill: #40734a;
}
:root {
  --sans: 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', Arial, sans-serif;
  --mono: var(--sans);
  --ink: #202b23;
  --muted: #52604e;
  --good: #28623b;
  --bad: #a52d30;
}
body {
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}
.brand {
  letter-spacing: 0.5px;
  gap: 10px;
}
.brand-name,
.login-art .brand .brand-name {
  font-family: var(--sans);
  font-size: 21px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 1px;
  display: block;
}
.brand img {
  flex-shrink: 0;
}
.login-panel {
  max-width: 470px;
}
.login-panel h2 {
  font-size: 28px;
  line-height: 1.4;
}
h1 {
  font-size: 30px;
  line-height: 1.4;
}
h2 {
  font-size: 20px;
  font-weight: 750;
}
h3 {
  font-size: 16px;
}
nav button {
  font-size: 16px;
  font-weight: 600;
}
.nav-caption,
.sidebar-bottom > p,
.sidebar-bottom > small {
  font-size: 13px;
  color: var(--muted);
}
.identity b,
.identity small {
  font-size: 14px;
}
.avatar {
  flex-shrink: 0;
}
.topbar,
.currency-control,
.tag,
.eyebrow {
  font-size: 13px;
  color: var(--muted);
}
.page-heading p:not(.eyebrow),
.login-panel > p,
.login-art p:not(.eyebrow) {
  font-size: 16px;
}
.stat {
  min-width: 0;
}
.stat .label {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.stat .value {
  font-family: var(--sans);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 800;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.stat small,
.panel-heading small,
.panel-foot,
.under-table,
.member-caption,
.hint,
.login-foot,
footer {
  font-size: 13px !important;
  color: var(--muted);
}
.notice,
.error,
.info-body,
.formula,
label,
.flow-row p,
.audit-row,
.link-button {
  font-size: 15px;
}
input,
select,
textarea {
  font-size: 16px;
}
input::placeholder {
  font-size: 14px;
  color: #65715f;
}
th {
  font-size: 14px;
  font-weight: 700;
  color: #46533f;
}
td {
  font-size: 15px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.symbol-text b {
  font-size: 16px;
}
.symbol-text small {
  font-size: 15px;
  color: #35492f;
  white-space: normal;
  min-width: 130px;
  max-width: 260px;
  line-height: 1.6;
}
.symbol-icon {
  flex-shrink: 0;
}
.pill,
.account-strip small,
.funding-table td,
.funding-table details,
.flow-summary span,
.flow-pagination button {
  font-size: 13px;
}
.account-strip b,
.member-meta b,
.member-meta .mono {
  font-size: 15px;
}
.chart text {
  font-size: 12px;
  fill: #52604e;
}
.login-art small {
  font-size: 13px;
}
.chart-empty {
  font-size: 15px;
}
.info-body {
  color: var(--muted);
}
@media (max-width: 1200px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar .brand-name {
    font-size: 18px;
  }
}
@media (max-width: 650px) {
  h1 {
    font-size: 25px;
  }
  .login-panel h2 {
    font-size: 25px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .stat .value {
    font-size: 30px;
  }
  .top-actions {
    gap: 8px !important;
  }
  .currency-control {
    font-size: 12px;
  }
  .currency-control select {
    font-size: 14px;
  }
  nav button {
    font-size: 14px;
  }
  .panel-heading {
    flex-wrap: wrap;
  }
  .under-table,
  footer {
    flex-wrap: wrap;
  }
  .login-art .brand .brand-name {
    display: block;
  }
}
