:root { --bg: #f4f6fa; --fg: #172033; --mut: #5d6678; --card: #ffffff; --line: #dde2ea; --acc: #003da6; }
@media (prefers-color-scheme: dark) { :root { --bg: #11151c; --fg: #e7ebf2; --mut: #9aa3b4; --card: #1a202a; --line: #2b3340; --acc: #6f9bff; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif; }
a { color: var(--acc); }
.top { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between; padding: 10px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { font-weight: 700; text-decoration: none; color: var(--fg); }
nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
nav a { text-decoration: none; }
main { max-width: 1400px; margin: 0 auto; padding: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; margin-bottom: 16px; }
.narrow { max-width: 440px; margin: 40px auto; }
h1 { font-size: 22px; margin: 0 0 8px; } h2 { font-size: 16px; margin: 18px 0 6px; }
label { display: block; margin: 10px 0; font-weight: 600; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); font: inherit; }
input[type=file] { padding: 6px; }
.check { display: flex; gap: 8px; align-items: center; } .check input { width: auto; margin: 0; }
button, .btn { display: inline-block; padding: 8px 16px; border: 0; border-radius: 6px; background: var(--acc); color: #fff; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
button.link { background: none; color: var(--acc); padding: 0 6px; font-weight: 500; }
.inline { display: inline; }
.flash { background: #fff4ce; color: #4a3b00; border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; }
.flash.strong code { font-size: 15px; }
.muted { color: var(--mut); } .small { font-size: 13px; } .nowrap { white-space: nowrap; }
.pre { white-space: pre-wrap; margin: 0; }
.bar { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.filters { display: flex; gap: 8px; } .filters input, .filters select { width: auto; margin: 0; }
.counts { display: flex; flex-wrap: wrap; gap: 6px; }
table.list { width: 100%; border-collapse: collapse; background: var(--card); }
.list th, .list td { text-align: left; vertical-align: top; padding: 8px; border-bottom: 1px solid var(--line); }
.list th { font-size: 13px; color: var(--mut); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 13px; font-weight: 600; background: #e5e9f0; color: #283246; white-space: nowrap; }
.s-fixed, .s-closed { background: #c6efce; color: #14532d; } .s-open, .s-partly-fixed { background: #ffeb9c; color: #5b4500; }
.s-in-progress, .s-retest { background: #dbe8ff; color: #13306b; }
.head { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; } .head h1 { margin: 0; flex: 1; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 8px 0 12px; }
.gallery img { width: 100%; border-radius: 6px; border: 1px solid var(--line); display: block; }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; } .row input { width: auto; flex: 1; margin: 0; }
.comment { border-top: 1px solid var(--line); padding: 8px 0; }
textarea { resize: vertical; }
@media (max-width: 760px) { .list th:nth-child(5), .list td:nth-child(5), .list th:nth-child(7), .list td:nth-child(7) { display: none; } }

/* fixer's question waiting for the user */
.s-flag { background: #ffd6d6; color: #7a1010; text-decoration: none; margin-top: 4px; }
.flagbox { border: 2px solid #e05555; border-radius: 8px; padding: 10px 14px; margin: 8px 0 12px; background: rgba(224, 85, 85, .08); }
.flagbox textarea { width: 100%; box-sizing: border-box; margin: 6px 0; }
button[disabled] { opacity: .6; cursor: default; }
