:root {
  font: 16px/1.6 system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #172c30;
  background: #f1f6f5;
  --line: #cddedb;
  --accent: #12614f;
  --muted: #4c6668;
}
* { box-sizing: border-box; }
body { margin: 0; }
header { background: #153c39; color: white; }
header > div { max-width: 1180px; padding: 1rem 1.5rem; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.brand { font-size: 1.16rem; font-weight: 720; letter-spacing: .03em; }
header a, header button { color: white; }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
nav form { display: inline; }
a { color: var(--accent); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid #b17012; outline-offset: 3px; }
main { max-width: 1180px; margin: auto; padding: 2rem 1.5rem 4rem; }
h1 { line-height: 1.2; font-size: clamp(1.9rem,4vw,2.8rem); margin: .35rem 0 1.25rem; }
h2 { margin: 0 0 .8rem; font-size: 1.25rem; }
p { margin: .4rem 0 1rem; }
.identity, .muted { color: var(--muted); }
section { background: white; border: 1px solid var(--line); border-radius: 13px; padding: clamp(1rem,3vw,1.55rem); margin-bottom: 1rem; scroll-margin-top: 1rem; }
.login { max-width: 30rem; }
.login form { grid-template-columns: 1fr; }
.tabs { background: #dfede9; border-radius: 10px; padding: .8rem 1rem; margin-bottom: 1rem; }
form { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%, 240px),1fr)); gap: .8rem 1rem; }
label { display: flex; flex-direction: column; gap: .25rem; font-weight: 600; }
input, select, textarea { font: inherit; min-width: 0; padding: .48rem .65rem; border: 1px solid #91aea9; border-radius: 6px; background: white; color: inherit; }
textarea { resize: vertical; }
.wide { grid-column: 1 / -1; }
button { cursor: pointer; width: fit-content; background: var(--accent); color: white; border: 0; border-radius: 7px; padding: .53rem .88rem; font: inherit; font-weight: 680; }
button:hover { filter: brightness(.9); }
.text-button { background: transparent; text-decoration: underline; padding: 0; }
details { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .7rem; }
summary { cursor: pointer; color: var(--accent); font-weight: 650; }
details[open] > summary { margin-bottom: .7rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { padding: .58rem .68rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
th { background: #eaf3f0; color: #31534f; white-space: nowrap; }
td { white-space: pre-wrap; min-width: 4rem; vertical-align: top; }
.photos:not(:empty) { display: flex; flex-wrap: wrap; gap: .65rem; margin-bottom: .8rem; }
.photos img { width: 128px; height: 104px; object-fit: cover; border-radius: 8px; }
.ledger { font-weight: 700; font-variant-numeric: tabular-nums; }
