:root {
  --bg: #f6f7f9;
  --card: #fff;
  --text: #1c2026;
  --muted: #6b7380;
  --line: #e1e5ea;
  --accent: #2459d6;
  --ok: #1e7a3c;
  --warn: #a15c00;
  --no: #b3261e;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14171b;
    --card: #1d2126;
    --text: #e8eaed;
    --muted: #98a1ad;
    --line: #2d333a;
    --accent: #6d95f5;
    --ok: #52c07a;
    --warn: #e0a64a;
    --no: #f08a82;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.6 -apple-system,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
h1 {
  font-size: 18px;
  margin: 0;
}
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.spread {
  justify-content: space-between;
}
.muted {
  color: var(--muted);
  font-size: 13px;
}
label {
  display: block;
  margin: 12px 0 4px;
  font-weight: 600;
}
input,
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font: inherit;
}
textarea {
  min-height: 140px;
  resize: vertical;
}
button {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pill {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  font-size: 13px;
  border: 1px solid var(--line);
}
.pill.s-已采纳,
.pill.s-已上线,
.pill.s-已有功能 {
  color: var(--ok);
  border-color: var(--ok);
}
.pill.s-评估中,
.pill.s-已排期 {
  color: var(--accent);
  border-color: var(--accent);
}
.pill.s-暂不采纳 {
  color: var(--no);
  border-color: var(--no);
}
.reply {
  border-left: 3px solid var(--accent);
  padding: 4px 12px;
  margin-top: 10px;
  white-space: pre-wrap;
}
.pre {
  white-space: pre-wrap;
  word-break: break-word;
}
.shots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.shots img {
  max-width: 160px;
  max-height: 120px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.err {
  color: var(--no);
  margin-top: 8px;
  white-space: pre-wrap;
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--bg);
  padding: 8px 16px;
  border-radius: 8px;
  display: none;
}
a.link {
  color: var(--accent);
  cursor: pointer;
  text-decoration: underline;
}
.card {
  max-width: 760px;
}
.tablewrap {
  overflow-x: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
}
table.ledger {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.ledger th,
.ledger td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.ledger th {
  color: var(--muted);
  font-weight: 600;
  white-space: nowrap;
  background: var(--bg);
}
.ledger tr:last-child td {
  border-bottom: 0;
}
.ledger tr.clickable {
  cursor: pointer;
}
.ledger tr.clickable:hover,
.ledger tr.clickable:focus {
  background: var(--bg);
  outline: none;
}
.ledger .nowrap {
  white-space: nowrap;
}
.ledger .num {
  text-align: center;
}
.ledger .title {
  min-width: 160px;
  font-weight: 600;
}
.ledger .replycell {
  min-width: 180px;
  color: var(--muted);
}
.dropzone {
  border: 2px dashed var(--line);
  border-radius: 10px;
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  background: var(--bg);
}
.dropzone:hover,
.dropzone:focus,
.dropzone.over {
  border-color: var(--accent);
  outline: none;
}
.thumb {
  position: relative;
}
.thumb img {
  display: block;
}
.thumb .rm {
  position: absolute;
  top: 2px;
  right: 2px;
  padding: 0 7px;
  line-height: 20px;
  border-radius: 999px;
}
