* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: #fff; color: #1a1a1a; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1000px; margin: 0 auto; padding: 24px 20px; }

/* Header */
.header { background: #fafafa; border-bottom: 1px solid #e5e5e5; padding: 16px 20px; }
.header-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.header h1 { font-size: 18px; font-weight: 700; }
.header .subtitle { font-size: 13px; color: #888; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 20px; }
.stat { border-radius: 10px; padding: 16px; text-align: center; }
.stat .n { font-size: 28px; font-weight: 800; }
.stat .l { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px; }

/* Reviewer bar */
.reviewer-bar { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid #e5e5e5; padding: 12px 20px; }
.reviewer-bar-inner { max-width: 1000px; margin: 0 auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.reviewer-bar label { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.05em; }

/* Pills & badges */
.pill { display: inline-block; padding: 6px 14px; border: 1px solid #ddd; border-radius: 20px; font-size: 12px; font-weight: 600; cursor: pointer; background: #fff; transition: all 0.15s; }
.pill:hover { border-color: #888; }
.pill.active { background: #1a1a1a; color: #fff; border-color: #1a1a1a; }
.rpill { display: inline-block; padding: 6px 16px; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; border: 1.5px solid #e5e5e5; background: #fff; transition: all 0.15s; }
.rpill:hover { border-color: #f9393b; }
.rpill.active { background: #f9393b; color: #fff; border-color: #f9393b; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.b-done { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; }
.b-verify { background: #dbeafe; color: #1e3a8a; border: 1px solid #bfdbfe; }
.b-input { background: #fef3c7; color: #78350f; border: 1px solid #fde68a; }
.b-open { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }
.b-good { background: #dcfce7; color: #14532d; border: 1px solid #bbf7d0; }
.b-broken { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }
.b-unsure { background: #fef3c7; color: #78350f; border: 1px solid #fde68a; }
.b-broken { background: #fee2e2; color: #7f1d1d; border: 1px solid #fecaca; }

/* Filters */
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.filters input { padding: 8px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; width: 260px; outline: none; }
.filters input:focus { border-color: #f9393b; }
.filters select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 13px; background: #fff; outline: none; }

/* Bug cards */
.bug-card { display: flex; align-items: center; gap: 12px; border: 1px solid #e8e4dc; border-radius: 10px; padding: 12px 16px; margin-bottom: 8px; cursor: pointer; transition: all 0.15s; text-decoration: none; color: inherit; }
.bug-card:hover { border-color: #f9393b; background: #fffafa; text-decoration: none; }
.bug-card .id { font-size: 14px; font-weight: 700; width: 45px; flex-shrink: 0; }
.bug-card .url { font-size: 12px; color: #2563eb; flex-shrink: 0; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bug-card .note { font-size: 13px; color: #555; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bug-card .who { font-size: 12px; color: #bbb; flex-shrink: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* Detail page */
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #888; margin-bottom: 20px; }
.back:hover { color: #f9393b; text-decoration: none; }
.detail-header { margin-bottom: 24px; }
.detail-header h1 { font-size: 24px; font-weight: 700; display: inline; margin-right: 12px; }
.info-box { background: #fafaf8; border: 1px solid #e8e4dc; border-radius: 10px; padding: 16px 20px; margin-bottom: 12px; }
.info-box .label { font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.info-box p { font-size: 14px; color: #333; line-height: 1.6; white-space: pre-wrap; }
.done-box { background: #f0fdf4; border: 1px solid #bbf7d0; }
.done-box .label { color: #14532d; }

/* Review form */
.review-form { background: #fafaf8; border: 1px solid #e8e4dc; border-radius: 12px; padding: 24px; }
.review-form h3 { font-size: 16px; font-weight: 700; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 11px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.form-group textarea { width: 100%; padding: 10px 14px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; resize: none; outline: none; font-family: inherit; }
.form-group textarea:focus { border-color: #f9393b; }
.submit-btn { background: #f9393b; color: #fff; font-weight: 700; padding: 12px 24px; border: none; border-radius: 10px; font-size: 14px; cursor: pointer; transition: background 0.15s; }
.submit-btn:hover { background: #d42e30; }
.submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.success { color: #22c55e; font-size: 14px; font-weight: 600; margin-left: 12px; display: none; }

/* Review cards */
.review-card { background: #fff; border: 1px solid #e5e5e5; border-radius: 8px; padding: 14px 16px; margin-bottom: 10px; }
.review-card .top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.review-card .name { font-size: 14px; font-weight: 600; }
.review-card .time { font-size: 12px; color: #bbb; margin-left: auto; }
.review-card .body { font-size: 13px; color: #555; line-height: 1.5; }
.review-card img { max-width: 280px; border-radius: 8px; border: 1px solid #e5e5e5; margin-top: 8px; }

/* Responsive */
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .bug-card .url { display: none; }
  .bug-card { gap: 8px; padding: 10px 12px; }
}
