@charset "UTF-8";
:root {
  --paper: #f7f7f2;
  --white: #fff;
  --ink: #203b32;
  --green: #17543f;
  --muted: #7c857e;
  --line: #e3e7df;
  --lime: #dce6af;
  --cost: #bdc8af;
  --danger: #a33e31;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font:
    14px/1.6 "Microsoft YaHei",
    "PingFang SC",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  transition:
    background 0.18s,
    color 0.18s;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -1px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.dropzone:focus-within {
  outline: 3px solid #8aa95a;
  outline-offset: 4px;
}
input,
select {
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  padding: 10px;
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.brand {
  font:
    bold 43px/1 Georgia,
    serif;
  letter-spacing: -3px;
  display: block;
}
.brand span {
  display: block;
  font:
    9px/1.5 "Microsoft YaHei",
    sans-serif;
  letter-spacing: 1.6px;
  margin-top: 12px;
}
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: white;
  padding: 11px 19px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.primary:hover {
  background: #22674f;
}
.text-button,
.icon-button,
.danger-button {
  border: 0;
  background: transparent;
  padding: 8px;
  color: var(--muted);
  font-size: 12px;
}
.text-button:hover,
.icon-button:hover {
  color: var(--green);
}
.danger-button {
  color: var(--danger);
}
.actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.notice {
  padding: 12px 16px;
  margin-top: 15px;
  background: #f1f3e4;
  border-radius: 6px;
  font-size: 13px;
  border: 1px solid #e0e5c9;
}
.notice.error {
  background: #fff1ed;
  color: var(--danger);
  border-color: #eed5cb;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  flex-shrink: 0;
  background: #eef0e8;
  border-right: 1px solid var(--line);
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  height: 100vh;
  position: sticky;
  top: 0;
}
.workspace-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--muted);
  margin: 54px 10px 15px;
}
.nav-current {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #e0e6d7;
  padding: 12px;
  border-radius: 6px;
  font-size: 13px;
}
.nav-dot {
  margin-left: auto;
  font-size: 7px;
  color: var(--green);
}
.history-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 30px 8px 8px;
  color: var(--muted);
  font-size: 11px;
}
.history-list {
  overflow: auto;
  flex: 1;
  min-height: 80px;
}
.history-item {
  display: block;
  padding: 12px 10px;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 4px;
  border: 1px solid transparent;
}
.history-item:hover,
.history-item.active {
  background: #fff;
  border-color: var(--line);
}
.history-item strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 500;
}
.history-item small {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.failed-tag {
  color: var(--danger);
}
.history-delete {
  float: right;
  font-size: 10px;
  border: 0;
  background: transparent;
  color: var(--danger);
  padding: 3px 8px;
}
.sidebar-bottom {
  border-top: 1px solid #d9ded1;
  padding-top: 20px;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #dbe2d0;
  font:
    16px Georgia,
    serif;
}
.sidebar-bottom strong {
  font-size: 12px;
}
.sidebar-bottom small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}
.sidebar-bottom form {
  margin-left: auto;
}
.main-content {
  padding: 0 44px;
  max-width: 1450px;
  flex: 1;
  min-width: 0;
}
.topbar {
  height: 77px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.slash {
  margin: 0 12px;
  color: #bec6b9;
}
.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
}
.status-pill i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #73975a;
}
.page-heading {
  padding: 35px 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-heading .muted {
  margin-top: 8px;
}
.heading-mark {
  font:
    17px/1.4 Georgia,
    "Microsoft YaHei",
    serif;
  border: 1px solid #c6d0ba;
  padding: 9px;
  color: #73906d;
  border-radius: 50% 50% 0 0;
  letter-spacing: 3px;
}
.upload-card,
.chart-card,
.table-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px 25px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px;
}
.section-heading p {
  margin-top: 4px;
}
.step {
  font:
    italic 16px Georgia,
    serif;
  color: #95a67b;
  margin-right: 10px;
}
.dropzone {
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 23px;
  border: 1px dashed #cbd4bf;
  border-radius: 7px;
  background: #fafbf7;
  cursor: pointer;
}
.dropzone.dragover {
  background: #eaf0db;
  border-color: var(--green);
}
.dropzone strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.dropzone small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.upload-symbol {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #eef1e5;
  font-size: 28px;
  color: #68835a;
  flex-shrink: 0;
}
.choose-file {
  margin-left: auto;
  border: 1px solid #d6ddca;
  background: white;
  border-radius: 5px;
  padding: 7px 14px;
  white-space: nowrap;
  font-size: 11px;
}
.upload-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 17px;
  gap: 12px;
}
.upload-footer .muted {
  font-size: 10px;
}
.empty-state {
  padding: 65px 20px;
  text-align: center;
}
.empty-glyph {
  font-size: 40px;
  color: #a5b697;
}
.empty-state h2 {
  font-size: 16px;
  margin: 15px 0 8px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
}
.rules {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin-top: 25px;
  font-size: 11px;
  color: var(--muted);
}
.rules b {
  font-family: Georgia, serif;
  color: #5e7755;
  margin-right: 6px;
}
.result-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 32px 0 19px;
}
.result-heading h2 {
  font-size: 24px;
}
.result-heading .eyebrow {
  margin-bottom: 4px;
}
.result-heading .muted {
  overflow-wrap: anywhere;
  margin-top: 5px;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 18px 0;
}
.metric {
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #eff1e8;
  position: relative;
  overflow: hidden;
}
.metric.income {
  background: var(--green);
  color: white;
  border-color: var(--green);
}
.metric p {
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.metric p span {
  font-size: 9px;
  letter-spacing: 1.5px;
  opacity: 0.6;
}
.metric h3 {
  font:
    36px/1.5 Arial,
    "Microsoft YaHei",
    sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  margin: 12px 0 3px;
  letter-spacing: -1px;
}
.metric small {
  font-size: 10px;
  opacity: 0.7;
}
.metric-line {
  position: absolute;
  right: 15px;
  bottom: -30px;
  width: 130px;
  height: 90px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.08;
  transform: rotate(-30deg);
}
.chart-card {
  margin-bottom: 18px;
}
.legend {
  display: flex;
  gap: 18px;
  font-size: 10px;
  color: var(--muted);
}
.legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend i {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}
.income-key {
  background: var(--green);
}
.cost-key {
  background: var(--cost);
}
.chart svg {
  width: 100%;
  height: auto;
  display: block;
}
.chart text {
  font-family: "Microsoft YaHei", sans-serif;
  fill: #879180;
  font-size: 10px;
}
.chart .grid {
  stroke: #e9ece4;
  stroke-width: 1;
}
.chart .zero {
  stroke: #a1ad96;
}
.chart .income-bar {
  fill: var(--green);
}
.chart .cost-bar {
  fill: var(--cost);
}
.chart .unit {
  font-size: 10px;
}
.table-scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: right;
  padding: 12px 14px;
  border-bottom: 1px solid #eef0e9;
}
th:first-child,
td:first-child {
  text-align: left;
}
th {
  color: var(--muted);
  font-weight: 400;
  background: #f8f9f4;
}
td:not(:first-child) {
  font-family: Arial, "Microsoft YaHei", sans-serif;
  font-variant-numeric: lining-nums tabular-nums;
  font-size: 14px;
}
tbody tr:hover {
  background: #fafbf7;
}
tfoot {
  font-weight: bold;
  background: #f0f3e9;
}
tfoot td {
  border: 0;
}
.record-footer {
  display: flex;
  justify-content: space-between;
  margin: 15px 0;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  margin-top: 28px;
  font-size: 10px;
  color: #98a18f;
}
.page-footer span:first-child {
  letter-spacing: 2px;
}
.login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}
.login-story {
  background: #193f32;
  color: #f0f1df;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 55px 65px;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  width: 430px;
  height: 430px;
  border: 1px solid #527455;
  border-radius: 50%;
  right: -240px;
  bottom: 80px;
  box-shadow:
    0 0 0 70px #244b3822,
    0 0 0 140px #63845611;
  pointer-events: none;
}
.login-story h1 {
  font:
    42px/1.7 Georgia,
    "Microsoft YaHei",
    serif;
  letter-spacing: 2px;
}
.login-story .eyebrow {
  color: #b4c59d;
}
.story-copy {
  font-size: 13px;
  line-height: 2;
  color: #b5c8b7;
  margin-top: 22px;
}
.story-bottom {
  display: flex;
  gap: 25px;
  font-size: 10px;
  color: #b0c0a6;
}
.login-panel {
  display: grid;
  place-items: center;
  padding: 50px;
}
.login-form {
  width: 100%;
  max-width: 340px;
}
.login-form h2 {
  font-size: 29px;
  margin-bottom: 7px;
}
.login-form form {
  margin-top: 38px;
}
.login-form label {
  display: block;
  margin: 20px 0 8px;
  font-size: 12px;
}
.login-form input {
  width: 100%;
  padding: 12px;
}
.login-submit {
  width: 100%;
  justify-content: space-between;
  margin-top: 28px;
  padding: 14px 18px;
}
.captcha-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.captcha-question {
  flex-shrink: 0;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.captcha-row input {
  flex: 1;
  min-width: 0;
}
.captcha-row a {
  flex-shrink: 0;
  padding: 8px 0;
}
.captcha-help {
  margin-top: 8px;
}
.login-note {
  color: var(--muted);
  font-size: 10px;
  text-align: center;
  margin-top: 27px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  max-width: 440px;
  width: calc(100% - 32px);
  color: var(--ink);
}
dialog::backdrop {
  background: #152c2477;
}
dialog p {
  color: var(--muted);
  margin: 16px 0 25px;
  font-size: 13px;
}
dialog .actions {
  justify-content: flex-end;
}
.destructive {
  background: var(--danger);
}
@media (min-width: 1500px) {
  .main-content {
    padding: 0 65px;
  }
  .page-heading {
    padding-top: 45px;
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 200px;
    padding: 26px 15px;
  }
  .main-content {
    padding: 0 25px;
  }
  .metric h3 {
    font-size: 29px;
  }
  .heading-mark {
    display: none;
  }
  .dropzone {
    padding: 18px;
  }
  .choose-file {
    display: none;
  }
  .login-story {
    padding: 40px;
  }
  .login-story h1 {
    font-size: 32px;
  }
}
@media (max-width: 720px) {
  .app-shell {
    display: block;
  }
  .sidebar {
    position: static;
    width: auto;
    height: auto;
    padding: 18px 20px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    font-size: 32px;
  }
  .brand span {
    font-size: 8px;
    margin-top: 6px;
  }
  .workspace-label,
  .nav-current {
    display: none;
  }
  .history-heading {
    margin: 14px 0 0;
  }
  .history-list {
    display: flex;
    gap: 8px;
    max-height: 95px;
    min-height: 0;
  }
  .history-item {
    min-width: 170px;
    max-width: 200px;
    padding: 8px;
  }
  .sidebar-bottom {
    position: absolute;
    right: 20px;
    top: 24px;
    margin: 0;
    padding: 0;
    border: 0;
  }
  .sidebar-bottom .avatar {
    display: none;
  }
  .main-content {
    padding: 0 18px;
  }
  .topbar {
    height: 50px;
  }
  .page-heading {
    padding: 24px 0;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .upload-card,
  .chart-card,
  .table-card {
    padding: 18px 16px;
  }
  .section-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .section-heading > .muted {
    font-size: 10px;
  }
  .dropzone {
    gap: 10px;
    padding: 16px 10px;
  }
  .dropzone strong {
    font-size: 12px;
  }
  .dropzone small {
    font-size: 10px;
  }
  .upload-symbol {
    width: 32px;
    height: 36px;
  }
  .upload-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .upload-footer .actions {
    align-self: flex-end;
  }
  .result-heading {
    flex-wrap: wrap;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 18px 14px;
  }
  .metric p span {
    display: none;
  }
  .metric h3 {
    font-size: 24px;
    overflow-wrap: anywhere;
  }
  .rules {
    flex-direction: column;
    gap: 8px;
  }
  .legend {
    gap: 12px;
  }
  .chart {
    overflow: auto;
  }
  .chart svg {
    min-width: 550px;
  }
  .page-footer {
    font-size: 9px;
  }
  .login-shell {
    display: block;
  }
  .login-story {
    min-height: 260px;
    padding: 25px 28px;
  }
  .login-story h1 {
    font-size: 25px;
    line-height: 1.5;
    margin-top: 25px;
  }
  .login-story .eyebrow,
  .story-copy,
  .story-bottom {
    display: none;
  }
  .login-panel {
    padding: 38px 28px;
  }
  .login-form form {
    margin-top: 24px;
  }
}
@media (max-width: 480px) {
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric h3 {
    font-size: 30px;
    white-space: nowrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
