:root {
  color-scheme: light;
  --ink: #162820;
  --muted: #52665b;
  --green: #185940;
  --line: #dce6df;
  --paper: #fff;
  --surface: #f3f7f4;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  line-height: 1.55;
  color: var(--ink);
  background: var(--surface);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--green); text-underline-offset: .2em; }
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; justify-content: space-between; align-items: center; min-height: 66px; gap: 16px; max-width: 1240px; margin: auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; color: var(--ink); }
.mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--green); color: white; font-size: .9rem; }
.nav { font-size: .88rem; font-weight: 600; }
.account-nav { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 2px 14px; }
.account-nav .nav { white-space: nowrap; }
.account-nav .nav-button { min-height: 0; padding: 0; border: 0; background: transparent; color: var(--green); font-size: .88rem; text-decoration: underline; text-underline-offset: .2em; }
main { margin: auto; padding: 44px 24px 72px; }
.narrow { max-width: 764px; }
.wide { max-width: 1240px; }
.intro { margin-bottom: 24px; }
.eyebrow { color: var(--green); font-size: .84rem; font-weight: 700; letter-spacing: .09em; margin: 0 0 7px; }
h1 { font-size: clamp(1.85rem, 5vw, 2.6rem); line-height: 1.16; letter-spacing: -.035em; margin: 0 0 10px; }
.intro p:last-child, .empty p { color: var(--muted); margin: 0; }
.panel, .table-box { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 6px 20px #193a2310; }
.panel { padding: 26px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.stack { display: grid; gap: 18px; }
label { display: block; font-weight: 650; font-size: .94rem; }
input:not([type=hidden]), select { display: block; width: 100%; min-width: 0; min-height: 44px; margin-top: 7px; padding: 9px 12px; background: white; border: 1px solid #c7d5cb; border-radius: 8px; font: inherit; font-weight: 400; color: var(--ink); }
input[type=file] { border-style: dashed; padding: 12px; background: #f7faf8; }
input::file-selector-button { padding: 6px 10px; border: 1px solid #b2c6b8; border-radius: 6px; color: var(--green); background: white; margin-right: 10px; cursor: pointer; }
.file-field { margin-top: 22px; }
.hint { display: block; color: var(--muted); font-size: .84rem; font-weight: 400; margin-top: 2px; }
.actions { display: flex; justify-content: flex-end; margin-top: 22px; }
.stack .actions { margin-top: 0; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--green); border-radius: 9px; padding: 9px 16px; font: inherit; font-weight: 650; color: white; background: var(--green); text-decoration: none; cursor: pointer; }
button:hover, .button:hover { background: #11452f; }
button.secondary { background: white; color: var(--green); }
button.secondary:hover { background: #edf5f0; }
:focus-visible { outline: 3px solid #40966d; outline-offset: 2px; }
.notice { margin-bottom: 16px; padding: 12px 16px; border: 1px solid; border-radius: 9px; overflow-wrap: anywhere; }
.success { color: #15523b; background: #e7f5ec; border-color: #a8d3b5; }
.error { color: #872e23; background: #fff1ed; border-color: #ecc1b7; }
.toolbar, .toolbar-buttons { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.totals { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0 0 16px; list-style: none; }
.totals li { display: flex; align-items: baseline; gap: 12px; background: #e8f2eb; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.totals span { color: var(--muted); font-size: .86rem; }
.table-box { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 740px; text-align: left; font-size: .9rem; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 14px; overflow-wrap: anywhere; }
th { background: #f4f8f5; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.number { font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 40px 16px; }
.empty p { margin-top: 4px; }
@media (max-width: 540px) {
  main { padding: 30px 16px 52px; }
  .bar { padding: 0 16px; }
  .grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .actions button { width: 100%; }
}
