:root {
  color-scheme: light;
  --base: #f5f7f6;
  --white: #ffffff;
  --ink: #142722;
  --muted: #526860;
  --line: #dce5e0;
  --green: #174d3c;
  --green-hover: #0e3a2c;
  --soft: #edf4f0;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--base);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
button, input, textarea, select { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid #53a58b; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); line-height: 1.18; letter-spacing: -.045em; overflow-wrap: anywhere; }
h2 { font-size: 1.15rem; line-height: 1.4; }
h3 { font-size: 1.15rem; }
small { font-size: .82rem; color: var(--muted); }
.muted { color: var(--muted); }
.site-header { background: #132e25; color: white; }
.header-inner { min-height: 70px; width: min(100% - 48px, 1216px); margin: auto; display: flex; align-items: center; gap: 42px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 760; font-size: 1.32rem; letter-spacing: -.045em; white-space: nowrap; }
.brand-icon { display: inline-grid; width: 31px; height: 31px; place-items: center; border-radius: 9px; background: #a8e5c7; color: #164633; }
.brand-icon::before { content: ""; width: 16px; height: 14px; transform: skewY(-10deg); border: 2px solid currentColor; border-radius: 3px; box-shadow: inset 0 -4px 0 #a8e5c7, inset 0 -6px 0 currentColor; }
nav { display: flex; align-self: stretch; gap: 22px; }
nav a { position: relative; display: inline-flex; align-items: center; padding-inline: 4px; color: #c4d7ce; white-space: nowrap; }
nav a[aria-current="page"] { color: white; font-weight: 700; }
nav a[aria-current="page"]::after { position: absolute; content: ""; height: 3px; inset: auto 0 0; background: #a8e5c7; border-radius: 3px 3px 0 0; }
.member { margin-left: auto; color: #c4d7ce; font-size: .875rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.container { width: min(100% - 48px, 1216px); margin: 42px auto 64px; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.page-heading p { margin-top: 8px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--white); padding: 8px 15px; font-size: .9rem; font-weight: 650; white-space: nowrap; }
.button:hover { background: var(--soft); }
.button.primary { border-color: var(--green); background: var(--green); color: var(--white); }
.button.primary:hover { background: var(--green-hover); }
.button.wide { width: 100%; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.metric { min-height: 101px; display: flex; flex-direction: column; gap: 5px; padding: 16px 18px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
.metric:hover, .metric.selected { border-color: #70a88e; background: #f7fcf9; }
.metric span { color: var(--muted); font-size: .89rem; }
.metric strong { font-size: 1.85rem; line-height: 1.2; font-variant-numeric: tabular-nums; }
.state-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; vertical-align: 1px; border-radius: 50%; background: #778981; }
.state-dot.review { background: #a86609; }
.state-dot.ready { background: #2768a8; }
.state-dot.done { background: #328362; }
.panel { border: 1px solid var(--line); border-radius: 13px; background: var(--white); }
.pad { padding: 23px; }
.pad h2 + p { margin-top: 7px; }
.list-toolbar { padding: 16px 19px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.subcount { font-weight: 550; font-size: .84rem; color: var(--muted); margin-left: 6px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters input { width: 220px; }
input:not([type="file"]), select, textarea { border: 1px solid var(--line); border-radius: 8px; background-color: var(--white); padding: 9px 12px; min-height: 42px; min-width: 0; }
select { appearance: none; padding-right: 25px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 13px) 51%, calc(100% - 9px) 51%; background-size: 4px 4px; background-repeat: no-repeat; }
textarea { resize: vertical; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 635px; text-align: left; }
th { background: #f7f9f8; color: var(--muted); font-weight: 600; font-size: .875rem; }
th, td { border-top: 1px solid var(--line); padding: 13px 18px; vertical-align: middle; }
tbody tr:hover { background: #fafcfb; }
.task-title { display: flex; align-items: center; gap: 12px; }
.task-title:hover strong { text-decoration: underline; }
.task-title small, .file-info small, .timeline small { display: block; margin-top: 3px; }
.thumbnail { width: 46px; height: 46px; flex: 0 0 46px; object-fit: cover; border: 1px solid var(--line); border-radius: 8px; }
.empty-thumb { background: var(--soft); }
.project { font-weight: 650; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tags span { max-width: 185px; overflow-wrap: anywhere; background: #eef3f0; color: #35564a; font-size: .81rem; padding: 2px 7px; border-radius: 5px; }
.badge { padding: 5px 9px; border-radius: 7px; display: inline-block; background: #eaf0ed; color: #314940; font-size: .87rem; font-weight: 650; white-space: nowrap; }
.badge.review { background: #fff0d9; color: #794b0c; }
.badge.ready { background: #e8f1fd; color: #24548a; }
.badge.done { background: #dcf5e7; color: #1f5d43; }
.date { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.empty-state { padding: 52px 18px 56px; text-align: center; border-top: 1px solid var(--line); display: grid; justify-items: center; gap: 8px; }
.empty-state .button { margin-top: 8px; }
.empty-symbol { width: 42px; height: 34px; border: 2px solid #91b2a2; background: var(--soft); border-radius: 7px; position: relative; margin-bottom: 6px; }
.empty-symbol::after { content: ""; position: absolute; width: 13px; height: 13px; left: 12px; top: 7px; border: solid #6a9780; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.auth-shell { width: min(100% - 32px, 430px); min-height: 100svh; margin: auto; padding: 35px 0; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.auth-panel { background: var(--white); padding: 34px; border: 1px solid var(--line); border-radius: 17px; box-shadow: 0 15px 52px #163c2c0d; }
.auth-panel h1 { margin: 27px 0 4px; }
.auth-panel form { margin-top: 23px; }
.auth-panel .quiet-link { display: inline-block; margin-top: 18px; }
.quiet-link { color: var(--green); font-weight: 650; }
.quiet-link:hover { text-decoration: underline; }
.back { display: inline-block; margin-bottom: 14px; }
.form-stack, .stack { display: grid; gap: 18px; }
.form-stack.compact { gap: 11px; margin-top: 14px; }
.form-stack label, .panel > label { display: grid; gap: 6px; font-weight: 650; }
.form-stack label small { font-weight: 450; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.editor { max-width: 840px; }
.inline-note { display: inline; }
.dropzone { display: grid; place-items: center; text-align: center; position: relative; gap: 4px; padding: 22px 12px; min-width: 0; border: 1px dashed #91b2a2; border-radius: 9px; background: #f6faf8; word-break: break-all; cursor: pointer; }
.dropzone:hover, .dropzone.dragover, .dropzone:focus-within { border-color: var(--green); background: #e8f4ed; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-title { font-weight: 650; }
.notice { margin-bottom: 13px; padding: 10px 14px; color: #234c3a; background: #e2f6e9; border: 1px solid #aad6bd; border-radius: 8px; }
.notice.error { color: #8a2929; background: #fff0f0; border-color: #e6aaaa; }
.context-line { font-size: .9rem; margin-bottom: 5px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(285px, 1fr); gap: 18px; align-items: start; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; }
.file-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(165px, 100%), 1fr)); gap: 11px; margin-top: 12px; }
.file-card { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.file-preview { display: block; background: #f0f3f1; }
.file-preview img { display: block; width: 100%; height: 150px; object-fit: contain; }
.file-info { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 9px; }
.file-info div, .path, .timeline { min-width: 0; overflow-wrap: anywhere; }
.file-info .button { min-height: 36px; padding: 4px 8px; }
.version { margin-top: 12px; }
.version-label { display: block; color: var(--muted); font-size: .88rem; margin-bottom: 5px; }
.state-action { margin-top: 12px; }
.timeline { margin: 12px 0 0; padding-left: 18px; }
.timeline li { padding-left: 4px; margin-bottom: 10px; }
.account-row, .key-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.key-row { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.compact-action { margin-top: 12px; }
.error-page { text-align: center; display: grid; gap: 12px; justify-items: center; max-width: 550px; margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (max-width: 760px) {
  .header-inner, .container { width: calc(100% - 28px); }
  .header-inner { gap: 16px; min-height: 62px; }
  .member { display: none; }
  nav { gap: 14px; }
  .brand { font-size: 1.15rem; }
  .container { margin-top: 26px; }
  .status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .metric { min-height: 84px; padding: 12px; }
  .detail-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-grid aside { grid-row: 1; }
  .pad, .list-toolbar { padding: 15px; }
}
@media (max-width: 410px) {
  .filters input { flex: 1 1 135px; width: 135px; }
  .form-row { grid-template-columns: 1fr; }
  .auth-panel { padding: 24px; }
}
