:root {
  --bg: #f5f6f8;
  --card: #fff;
  --line: #e8e8e8;
  --text: #1f1f1f;
  --muted: #8c8c8c;
  --accent: #1677ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background: var(--bg);
}
.top {
  padding: 20px 28px 12px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
h1 { margin: 0 0 4px; font-size: 20px; }
.sub { margin: 0; color: var(--muted); }
.sub a { color: var(--accent); }
main { padding: 20px 28px 40px; max-width: 880px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 16px;
}
.card h2 { margin: 0 0 12px; font-size: 15px; }
.compose { margin-bottom: 20px; }
form { display: grid; gap: 8px; }
input, select, textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  font: inherit;
}
textarea { min-height: 88px; resize: vertical; }
.kinds { display: flex; gap: 8px; }
.kinds label {
  border: 1px solid var(--line);
  padding: 6px 12px;
  cursor: pointer;
}
.kinds label.on { border-color: var(--accent); color: var(--accent); }
.kinds input { display: none; }
.shot-row { display: flex; align-items: center; gap: 10px; }
.file-btn {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #fff;
}
.thumbs, .shots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.thumb { position: relative; }
.thumb img, .shots img {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border: 1px solid var(--line);
  cursor: pointer;
  background: #fafafa;
}
.thumb button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  border: 0;
  border-radius: 50%;
  background: #333;
  color: #fff;
  cursor: pointer;
  line-height: 20px;
}
button.act {
  width: auto;
  justify-self: start;
  padding: 8px 16px;
  background: var(--accent);
  color: #fff;
  border: 0;
  cursor: pointer;
}
button.link {
  background: none;
  border: 0;
  color: var(--accent);
  cursor: pointer;
  padding: 0 8px 0 0;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.filters button, .switch button {
  border: 1px solid var(--line);
  background: #fff;
  padding: 6px 12px;
  cursor: pointer;
}
.filters button.on, .switch button.on {
  border-color: var(--accent);
  color: var(--accent);
}
.issue { margin-bottom: 12px; }
.issue-top { display: flex; align-items: center; gap: 8px; }
.issue-top h3 { margin: 0; font-size: 16px; }
.who-line { margin: 6px 0 0; color: var(--muted); }
.detail { margin: 8px 0 0; white-space: pre-wrap; }
.issue-ops { margin-top: 10px; }
.pill { display: inline-block; padding: 0 6px; border: 1px solid var(--line); font-size: 12px; }
.bug { color: #a8071a; }
.feature { color: #0958d9; }
.open, .doing { color: #ad4e00; }
.done { color: #237804; }
.wont { color: var(--muted); }
.fail { color: #a8071a; margin: 0; }
.muted { color: var(--muted); }
.empty { padding: 24px 0; }
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 20;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; }
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-wrap .card { width: 360px; }
.login-wrap h1 { margin: 0 0 4px; font-size: 20px; }
.switch { display: flex; gap: 8px; margin: 12px 0; }
@media (max-width: 700px) {
  .top, main { padding-left: 16px; padding-right: 16px; }
}
