/* Bug repository dashboard — shared styles ("Claude look": warm + clay + serif) */

@font-face {
  font-family: "Fraunces";
  src: url("/fonts/fraunces.woff2") format("woff2");
  font-weight: 100 900; font-display: swap;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

h1, h2 { font-family: "Fraunces", "Iowan Old Style", Georgia, serif; font-weight: 600; letter-spacing: -0.01em; }
a { color: #a8482c; }  /* clay links (AA on white); header links keep their own colour */

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  color: #29241f;
  background: #f6f3ee;
  min-height: 100vh;
}

header {
  background: #a8482c;
  color: #fff;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

header h1 { font-size: 17px; font-weight: 600; flex: 1; }
header a, header button {
  color: #fff; background: none; border: 1px solid rgba(255,255,255,0.5);
  border-radius: 6px; padding: 6px 12px; font-size: 13px; cursor: pointer;
  text-decoration: none;
}
header .who { font-size: 13px; opacity: 0.9; }

main { max-width: 1100px; margin: 20px auto; padding: 0 20px; }

.card {
  background: #fff; border: 1px solid #e6ded2; border-radius: 8px;
  padding: 16px; margin-bottom: 16px;
}

label { display: block; font-weight: 600; margin: 10px 0 4px; }
input, select, textarea {
  width: 100%; border: 1px solid #e6ded2; border-radius: 6px;
  padding: 8px; font-family: inherit; font-size: 14px; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #c2603f; }

button.primary {
  margin-top: 14px; padding: 9px 18px; background: #a8482c; color: #fff;
  border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer;
}
button.primary:hover { background: #8a3a22; }

.error { color: #b91c1c; margin-top: 10px; }
.success { color: #15803d; margin-top: 10px; font-weight: 600; }
.muted { color: #6b7280; }

.checkbox-row { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.checkbox-row input { width: auto; }

.access-code { font-size: 12px; background: #f6f3ee; padding: 2px 6px;
               border: 1px solid #e6ded2; border-radius: 4px; }
.mini-btn { padding: 3px 8px; font-size: 11px; background: #fff; color: #a8482c;
            border: 1px solid #a8482c; border-radius: 4px; cursor: pointer; margin-left: 4px; }
.mini-btn:hover { background: #fdf0f0; }

.onboarding-steps { margin: 10px 0 4px 20px; line-height: 2; }

/* Bug list */
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.filters > div { flex: 1; min-width: 130px; }

table { border-collapse: collapse; width: 100%; margin-top: 12px; background: #fff; }
th, td { border: 1px solid #e6ded2; padding: 8px 10px; text-align: left; font-size: 13px; }
th { background: #eef0f4; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: #fdf0f0; }

.badge {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #fff;
}
.sev-Low { background: #16a34a; }
.sev-Medium { background: #d97706; }
.sev-High { background: #dc2626; }

.status-pill {
  display: inline-block; padding: 2px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: #eef0f4; color: #29241f;
}
.st-New { background: #dbeafe; }
.st-Verified, .st-Fixed, .st-Closed { background: #dcfce7; }
.st-Rejected, .st-Duplicate { background: #fee2e2; }
.st-In.Progress, .st-Accepted { background: #fef9c3; }

/* Bug detail */
.detail-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; }
.step-img, video { max-width: 100%; border: 1px solid #e6ded2; border-radius: 6px; margin-top: 8px; }
.comment { border-top: 1px solid #eef0f4; padding: 8px 0; }
.comment .meta { font-size: 12px; color: #6b7280; }
pre {
  background: #f6f3ee; border: 1px solid #e6ded2; border-radius: 6px;
  padding: 10px; overflow-x: auto; font-size: 12px; margin-top: 8px;
}

@media (max-width: 800px) {
  .detail-grid { grid-template-columns: 1fr; }
}
