:root {
  font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #16382e;
  background: #f3f5ef;
  --green: #143d31;
  --soft: #e9efe6;
  --muted: #52665c;
  --line: #dce4da;
  --warm: #ffd388;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #b06b0e; outline-offset: 3px; }
.top { background: #0b3027; color: #fff8e8; }
.top-inner { max-width: 75rem; margin: auto; min-height: 5rem; padding: 0 2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .75rem; }
.brand img { width: 3.1rem; border-radius: .45rem; display: block; }
.brand strong, .brand span { display: block; }
.brand strong { font-size: 1.12rem; }
.brand span { color: #d1dbca; font-size: .75rem; letter-spacing: .13em; font-weight: 700; }
main { max-width: 75rem; margin: auto; padding: 2.9rem 2rem 5rem; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 1rem; }
.login { max-width: 28rem; margin: 5vh auto 0; padding: 2rem; }
.section-name { color: #456257; font-size: .875rem; font-weight: 700; margin: 0 0 .6rem; }
h1 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.045em; margin: 0; line-height: 1.2; }
h2 { margin: 0; font-size: 1.15rem; }
.muted { color: var(--muted); }
.overview { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; }
.overview p:last-child { margin: .7rem 0 0; }
button { border-radius: .55rem; padding: .58rem .95rem; font-size: .9rem; font-weight: 700; border: 1px solid transparent; white-space: nowrap; min-height: 2.65rem; }
.primary { background: var(--green); color: #fff; }
.secondary { background: #fff; color: var(--green); border-color: #cdd9cd; }
.ghost { background: transparent; color: #fff8e8; border-color: #68847a; }
.danger { background: #fff5f2; color: #923d2b; border-color: #eed1c8; }
button:hover:not(:disabled) { filter: brightness(.94); }
form { margin-top: 1.4rem; display: grid; gap: 1rem; }
form label { display: grid; gap: .5rem; font-size: .9rem; font-weight: 650; }
input, textarea { width: 100%; color: #16382e; padding: .7rem .75rem; border: 1px solid #b9c9bd; border-radius: .55rem; background: #fff; font-weight: 400; }
textarea { resize: vertical; }
.tabs { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1rem; }
.tabs button { background: transparent; color: var(--muted); }
.tabs button[aria-pressed="true"] { background: #dfeade; color: #173f32; }
.tabs span:not(:empty) { margin-left: .2rem; font-size: .8rem; }
.results { overflow: hidden; }
.results-title { padding: 1rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: .8rem; border-bottom: 1px solid var(--line); }
.results-title span { font-size: .875rem; }
.activity { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto; align-items: center; gap: .65rem 1rem; padding: 1rem 1.3rem; }
.activity + .activity { border-top: 1px solid var(--line); }
.activity h3 { margin: 0 0 .35rem; font-size: 1rem; overflow-wrap: anywhere; }
.activity p, .activity time { color: var(--muted); font-size: .9rem; margin: 0; overflow-wrap: anywhere; }
.activity time { display: block; margin-bottom: .3rem; color: #16382e; }
.label { display: inline-block; padding: .2rem .58rem; border-radius: .4rem; background: var(--soft); color: #2f5443; font-size: .875rem; font-weight: 650; }
.notice { margin: 1rem 1.3rem; padding: .85rem 1rem; background: #edf3eb; border-radius: .6rem; overflow-wrap: anywhere; }
.empty { margin: 0; padding: 3.5rem 1rem; text-align: center; color: var(--muted); }
.error { color: #923d2b; margin: 0; font-size: .9rem; }
.pages { display: flex; justify-content: end; align-items: center; gap: .75rem; border-top: 1px solid var(--line); padding: 1rem 1.3rem; }
dialog { width: min(40rem, calc(100% - 2rem)); max-height: 90vh; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; color: inherit; box-shadow: 0 1rem 4rem #102c2250; }
dialog::backdrop { background: #102c2280; }
.dialog-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
dialog h2 { font-size: 1.65rem; margin-top: .5rem; overflow-wrap: anywhere; }
dialog dl { display: flex; flex-wrap: wrap; column-gap: 1.75rem; row-gap: .65rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
dialog dt { font-size: .875rem; color: var(--muted); margin-bottom: .25rem; }
dialog dd { margin: 0; overflow-wrap: anywhere; }
.description, dialog .notice { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
dialog .notice { margin-inline: 0; }
#actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .55rem; }
@media (max-width: 38rem) {
  main, .top-inner { padding-left: 1rem; padding-right: 1rem; }
  main { padding-top: 2rem; }
  .overview { align-items: start; }
  .activity { grid-template-columns: 1fr auto; align-items: start; }
  .activity > div:nth-child(2) { grid-row: 2; grid-column: 1; }
  .activity > button { grid-row: 1 / 3; grid-column: 2; align-self: center; }
  .login, dialog { padding: 1.2rem; }
}
