:root {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #172721;
  background: #f4f5f0;
  font-size: 15px;
  --ink: #172721;
  --green: #215c43;
  --muted: #586961;
  --line: #dce3d9;
  --white: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
.bar { background: #122e25; color: #f1f5ed; }
.bar-inner { max-width: 1200px; margin: auto; min-height: 67px; padding: 10px 28px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; gap: 11px; align-items: center; text-decoration: none; font-weight: 700; white-space: nowrap; }
.mark { background: #cee8c9; color: #16372b; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; }
nav { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
nav a, .quiet { text-decoration: none; padding: 8px 12px; border: 0; border-radius: 6px; color: inherit; background: transparent; font-size: .87rem; }
nav a[aria-current="page"], nav a:hover, .quiet:hover { background: #284c3e; }
main { max-width: 1200px; margin: auto; padding: 0 28px 48px; }
.intro { padding: 38px 0 21px; }
.eyebrow { font-size: .87rem; font-weight: 650; color: var(--green); }
.dot { display: inline-block; border-radius: 50%; background: #5b9167; width: 8px; height: 8px; margin-right: 4px; }
h1 { font-size: clamp(2rem, 5vw, 2.85rem); line-height: 1.18; letter-spacing: -.04em; margin: 8px 0 5px; }
h2, h3, p { margin: 0; }
h2 { font-size: 1.22rem; margin-bottom: 14px; }
h3 { font-size: 1rem; }
#page-caption, .muted { color: var(--muted); line-height: 1.55; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: 15px; padding: 21px; min-width: 0; }
.login { max-width: 390px; }
.grid, .metrics, .split { display: grid; gap: 14px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { grid-template-columns: 1.25fr 1fr; }
.metric { display: flex; flex-direction: column; gap: 6px; }
.metric strong { font-size: clamp(1.45rem, 2.85vw, 2rem); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric small, small.muted { font-size: .82rem; }
.metric:first-child { background: #e1eddf; }
form { display: grid; gap: 12px; }
label { display: grid; gap: 5px; font-weight: 620; font-size: .9rem; }
input, select, button, textarea { font: inherit; }
input, select, textarea { min-width: 0; width: 100%; border: 1px solid #acbbaf; border-radius: 8px; color: var(--ink); background: #fff; padding: 9px 10px; }
textarea { min-height: 84px; resize: vertical; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
.primary, .secondary { padding: 10px 15px; border: 1px solid var(--green); border-radius: 8px; width: fit-content; font-weight: 620; }
.primary { background: var(--green); color: #fff; }
.secondary { background: #fff; color: var(--green); }
:focus-visible { outline: 3px solid #2b855c; outline-offset: 3px; }
.message { color: var(--green); font-size: .91rem; line-height: 1.5; }
.message:empty { display: none; }
.message.error { color: #982821; }
.field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); display: grid; gap: 10px; }
details { margin-top: 15px; border-top: 1px solid var(--line); padding-top: 13px; }
summary { cursor: pointer; color: var(--green); }
details form { margin-top: 13px; }
.chart { min-height: 155px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; align-items: end; }
.chart-day { text-align: center; display: grid; grid-template-rows: auto 102px auto; gap: 5px; font-size: .74rem; overflow-wrap: anywhere; }
.bar-track { display: flex; align-items: end; justify-content: center; border-bottom: 1px solid var(--line); }
.bar-track progress { appearance: none; transform: rotate(-90deg); align-self: center; flex-shrink: 0; width: 96px; height: 18px; }
.bar-track progress::-webkit-progress-bar { background: transparent; }
.bar-track progress::-webkit-progress-value { background: #76a484; border-radius: 0 5px 5px 0; }
.bar-track progress::-moz-progress-bar { background: #76a484; border-radius: 0 5px 5px 0; }
.chart-day span:last-child { color: var(--muted); }
.list-line, .task { display: grid; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.list-line { grid-template-columns: 1fr auto; }
.task form { margin-top: 5px; }
.task-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.state { font-size: .78rem; background: #e9f0e5; color: #305a3d; border-radius: 12px; padding: 3px 8px; white-space: nowrap; }
.unavailable { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: 12px; }
.unavailable div { display: grid; gap: 4px; }
@media (max-width: 800px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .bar-inner { padding: 9px 14px; flex-wrap: wrap; }
  nav a, .quiet { padding: 8px; }
  main { padding: 0 14px 35px; }
  .intro { padding-top: 24px; }
  .panel { padding: 15px; }
  input, select, textarea { font-size: 16px; }
}

#order-message { margin-top: 12px; }
.ops-inside { padding: 12px 0 2px; max-width: 720px; }
.ops-inside form { grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); align-items: end; }
.ops-inside form .message { grid-column: 1 / -1; overflow-wrap: anywhere; }
#owner-pay progress { width: 100%; }

.campaign-buttons { display: flex; gap: 8px; flex-wrap: wrap; }
.campaign-detail { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .85rem; }
.campaign-result { padding: 10px; border-left: 3px solid var(--line); margin-top: 3px; }

@media (max-width: 560px) {
  .xp001 .list-line { grid-template-columns: minmax(0, 1fr); }
}
