.qt-wrap {
	max-width: 1120px;
	margin: 0 auto 24px;
	color: #efe1c5;
	font-family: var(--font-body);
}
.qt-hero {
	background: linear-gradient(135deg, rgba(107,84,55,0.94), rgba(42,28,18,0.96));
	border: 1px solid #8f6e47;
	border-radius: 12px;
	padding: 20px 22px 16px;
	margin-bottom: 16px;
	box-shadow: 0 10px 28px rgba(0,0,0,0.28);
}
.qt-wrap .qt-hero h1 {
	margin: 0 0 8px;
	color: #fff4db;
	font-family: var(--font-heading);
	font-size: 1.65rem !important;
	line-height: 1.2;
	letter-spacing: 0.02em;
	text-shadow: none;
}
.qt-hero p {
	margin: 0 0 14px;
	color: #f3e7cf;
	line-height: 1.55;
	max-width: 52rem;
}
.qt-hero-lead {
	max-width: 38rem;
}
.qt-stat-board {
	display: grid;
	grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
	gap: 18px 32px;
	align-items: start;
}
.qt-stat-group h2 {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	font-family: var(--font-body);
	font-size: 0.78rem !important;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: #cbb896;
	text-shadow: none;
}
.qt-stats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.qt-stat {
	display: inline-flex;
	flex-direction: column;
	min-width: 96px;
	padding: 10px 12px;
	border-radius: 8px;
	background: rgba(0,0,0,0.22);
	border: 1px solid rgba(143,110,71,0.55);
}
.qt-stat b {
	color: #ffe69b;
	font-size: 1.28rem;
	line-height: 1.1;
}
.qt-stat span {
	color: #d9c8a8;
	font-size: 0.72rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-top: 4px;
}
.qt-stat-working b { color: #c8f3d4; }
.qt-stat-fix b { color: #f0d0c0; }
.qt-hero-note {
	margin: 16px 0 0 !important;
	color: #cbb896 !important;
	font-size: 0.86rem;
	max-width: 42rem;
	line-height: 1.5;
}
.qt-toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin-bottom: 12px;
}
.qt-search {
	flex: 1 1 260px;
	min-width: 180px;
	background: rgba(28,18,12,0.92);
	border: 1px solid #6b5437;
	color: #fff4db;
	border-radius: 8px;
	padding: 10px 12px;
}
.qt-search:focus {
	outline: none;
	border-color: #c9a227;
	box-shadow: 0 0 0 2px rgba(201,162,39,0.22);
}
.qt-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 12px;
}
.qt-filter {
	border: 1px solid #6b5437;
	background: rgba(40,28,20,0.88);
	color: #efe1c5;
	border-radius: 999px;
	padding: 5px 10px;
	font-size: 0.82rem;
	cursor: pointer;
}
.qt-filter.is-on,
.qt-filter:hover {
	border-color: #c9a227;
	color: #ffe69b;
	background: rgba(201,162,39,0.12);
}
.qt-table-wrap {
	overflow-x: auto;
	border: 1px solid #6b5437;
	border-radius: 10px;
	background: rgba(40,28,20,0.92);
}
.qt-table {
	width: 100%;
	border-collapse: collapse;
	min-width: 720px;
}
.qt-table th {
	text-align: left;
	padding: 10px 12px;
	background: rgba(107,84,55,0.55);
	color: #fff4db;
	border-bottom: 1px solid #8f6e47;
	white-space: nowrap;
}
.qt-table td {
	padding: 9px 12px;
	border-bottom: 1px solid rgba(122,99,69,0.32);
	vertical-align: middle;
}
.qt-table tr:hover td {
	background: rgba(201,162,39,0.08);
}
.qt-table a {
	color: #ffe69b;
	font-weight: 700;
}
.qt-name-sub {
	display: block;
	color: #b9a88a;
	font-size: 0.78rem;
	font-weight: 400;
}
.qt-pill {
	display: inline-block;
	border-radius: 999px;
	padding: 2px 8px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.02em;
	white-space: nowrap;
}
.qt-pill + .qt-pill { margin-left: 4px; }
.qt-presence-waiting { background: rgba(120,120,120,0.28); color: #d7d0c4; }
.qt-presence-added { background: rgba(86,140,78,0.32); color: #c8ecc0; }
.qt-presence-partial { background: rgba(201,162,39,0.28); color: #ffe69b; }
.qt-play-unknown { background: rgba(90,90,110,0.35); color: #d5d8ea; }
.qt-play-broken { background: rgba(150,92,58,0.36); color: #f3d4c4; }
.qt-play-needs_test { background: rgba(196,128,42,0.38); color: #ffd9a8; }
.qt-play-working { background: rgba(52,140,92,0.4); color: #c8f3d4; }
.qt-evidence {
	display: block;
	margin-top: 3px;
	font-size: 0.72rem;
	color: #cbb896;
}
.qt-empty {
	padding: 22px 12px;
	text-align: center;
	color: #d4c4a8;
}
.qt-detail-head {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	align-items: flex-start;
}
.qt-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 0;
	font-size: 0.92rem;
}
.qt-links a.is-preferred {
	background: rgba(201,162,39,0.2);
	color: #fff4db;
	font-weight: 700;
}
.qt-custom-hint {
	margin: 0 0 12px;
	padding: 10px 12px;
	border: 1px solid rgba(201,162,39,0.55);
	border-radius: 8px;
	background: rgba(201,162,39,0.1);
}
.qt-custom-hint p {
	margin: 0 0 8px;
	color: #f3e7cf;
	line-height: 1.45;
}
.qt-pill.qt-custom {
	border: 1px solid #c9a227;
	color: #ffe69b;
	background: rgba(201,162,39,0.16);
}
.qt-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-top: 14px;
}
.qt-wrap > .qt-card {
	margin-top: 12px;
}
.qt-turnstile {
	margin: 12px 0 4px;
}
.qt-card {
	background: rgba(40,28,20,0.92);
	border: 1px solid #6b5437;
	border-radius: 10px;
	padding: 14px 14px 12px;
	min-width: 0;
}
.qt-card h2,
.qt-wrap .qt-card h2 {
	margin: 0 0 12px;
	padding-bottom: 8px;
	border-bottom: 1px solid rgba(122,99,69,0.4);
	color: #fff4db;
	font-family: var(--font-heading);
	font-size: 1.12rem !important;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.04em;
	text-shadow: none;
}
.qt-wrap .qt-card h3,
.qt-wrap h3.qt-subhead,
.qt-subhead {
	margin: 0 0 8px;
	padding: 0;
	border: 0;
	color: #d4c4a4;
	font-family: var(--font-body) !important;
	font-size: 0.84rem !important;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-shadow: none;
}
.qt-facts {
	display: grid;
	gap: 12px;
	margin: 0;
}
.qt-fact {
	display: grid;
	grid-template-columns: 7.6rem minmax(0, 1fr);
	gap: 4px 14px;
	align-items: baseline;
}
.qt-fact dt {
	margin: 0;
	padding: 0;
	color: #d4c4a4;
	font-family: var(--font-body);
	font-size: 0.84rem !important;
	font-weight: 700;
	letter-spacing: 0.05em;
	line-height: 1.35;
	text-transform: uppercase;
}
.qt-fact dd {
	margin: 0;
	color: #efe1c5;
	font-family: var(--font-body);
	font-size: 0.95rem !important;
	font-weight: 500;
	line-height: 1.4;
}
.qt-pill-row {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.qt-pill-row .qt-pill + .qt-pill {
	margin-left: 0;
}
.qt-npc-block {
	margin-top: 14px;
	padding-top: 12px;
	border-top: 1px solid rgba(122,99,69,0.35);
}
.qt-npc-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0;
}
.qt-npc {
	display: inline-block;
	padding: 4px 9px;
	border-radius: 999px;
	background: rgba(0,0,0,0.22);
	border: 1px solid rgba(143,110,71,0.42);
	color: #efe1c5;
	font-size: 0.82rem;
	line-height: 1.3;
}
.qt-npc-more {
	align-self: center;
	color: #b9a88a;
	font-size: 0.78rem;
}
.qt-notes-card {
	grid-column: 1 / -1;
}
.qt-thread-wrap {
	position: relative;
}
.qt-thread {
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 32em;
	overflow-y: auto;
	padding-right: 4px;
	scrollbar-width: thin;
	scrollbar-color: #8f6e47 rgba(0, 0, 0, 0.28);
}
.qt-thread::-webkit-scrollbar {
	width: 8px;
}
.qt-thread::-webkit-scrollbar-thumb {
	background: #8f6e47;
	border-radius: 8px;
}
.qt-thread::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.28);
	border-radius: 8px;
}
.qt-thread-wrap.is-overflow::after {
	content: "";
	position: absolute;
	left: 0;
	right: 14px;
	bottom: 0;
	height: 42px;
	pointer-events: none;
	border-radius: 0 0 10px 10px;
	background: linear-gradient(to bottom, rgba(40, 28, 20, 0), rgba(32, 22, 16, 0.96));
}
.qt-bubble {
	border: 1px solid rgba(122, 99, 69, 0.38);
	border-left-width: 4px;
	border-radius: 10px;
	padding: 14px 16px;
	background: rgba(0, 0, 0, 0.22);
	overflow-wrap: anywhere;
	word-break: break-word;
}
.qt-bubble.is-staff {
	border-left-color: #c9a227;
	background: rgba(57, 45, 17, 0.55);
}
.qt-bubble.is-player {
	border-left-color: #6daeff;
	background: rgba(13, 30, 51, 0.55);
}
.qt-bubble.is-rejected {
	border-left-color: #c45a5a;
	background: rgba(58, 24, 24, 0.48);
}
.qt-bubble-head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px 10px;
	margin: 0 0 8px;
}
.qt-bubble-author {
	font-weight: 700;
	color: #ffe69b;
	font-size: 1em;
	line-height: 1.3;
}
.qt-bubble.is-player .qt-bubble-author {
	color: #d6e8ff;
}
.qt-bubble-meta,
.qt-bubble-tag {
	color: #cbb896;
	font-size: 0.82em;
	line-height: 1.3;
}
.qt-bubble-tag {
	letter-spacing: 0.03em;
	text-transform: uppercase;
}
.qt-bubble-body {
	color: #f3e7cf;
	line-height: 1.55;
}
.qt-bubble .qt-bubble-body,
.qt-bubble .qt-note-fields .qt-fact dd {
	font-size: 1em !important;
	line-height: 1.55;
}
.qt-bubble .qt-note-fields .qt-fact dt {
	font-size: 0.82em !important;
}
.qt-bubble.is-featured.is-staff {
	font-size: 1em;
}
.qt-bubble.is-featured.is-staff .qt-bubble-body {
	line-height: 1.6;
}
.qt-bubble.is-featured.is-player {
	font-size: 0.92em;
}
.qt-bubble.is-archive {
	padding: 8px 10px;
	font-size: 0.78em;
}
.qt-bubble.is-archive .qt-bubble-head {
	margin-bottom: 4px;
}
.qt-bubble .qt-note-fields {
	margin-top: 0;
	gap: 8px;
}
.qt-bubble .qt-fact.is-body {
	grid-template-columns: 1fr;
	gap: 2px;
}
.qt-bubble .qt-fact.is-body dt {
	padding-top: 0;
}
.qt-vote-line {
	margin: 0 0 8px;
	font-family: var(--font-body);
	font-size: 0.95rem !important;
	line-height: 1.45;
}
.qt-report-card .qt-muted {
	margin: 0 0 10px;
}
.qt-note-meta,
.qt-muted {
	color: #cbb896;
	font-family: var(--font-body);
	font-size: 0.92rem !important;
	line-height: 1.5;
}
.qt-note-meta {
	margin: 0;
}
.qt-note-fields {
	margin-top: 8px;
	gap: 8px;
}
.qt-note-fields .qt-fact.is-body {
	align-items: start;
}
.qt-pending {
	border: 1px dashed #c9a227;
	border-radius: 8px;
	padding: 10px;
	margin-bottom: 10px;
	background: rgba(201,162,39,0.08);
}
.qt-pending .qt-note-meta {
	margin: 4px 0 0;
}
.qt-form label {
	display: block;
	margin: 8px 0 4px;
	color: #fff4db;
	font-weight: 600;
}
.qt-form input,
.qt-form select,
.qt-form textarea {
	width: 100%;
	background: rgba(28,18,12,0.92);
	border: 1px solid #6b5437;
	color: #fff4db;
	border-radius: 8px;
	padding: 8px 10px;
}
.qt-form textarea { min-height: 110px; resize: vertical; }
.qt-field-error {
	display: none;
	margin: 6px 0 0;
	color: #ffb4b4;
	font-weight: 700;
}
.qt-field.is-invalid select {
	border-color: #e05a5a;
	box-shadow: 0 0 0 1px #e05a5a;
}
.qt-field.is-invalid .qt-field-error { display: block; }
.qt-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}
.qt-btn {
	display: inline-block;
	border: 1px solid #8f6e47;
	background: linear-gradient(180deg, #8a6436, #5c4022);
	color: #fff4db !important;
	border-radius: 8px;
	padding: 8px 12px;
	font-family: var(--font-heading);
	font-size: 0.92rem !important;
	font-weight: 700;
	line-height: 1.2;
	cursor: pointer;
	text-decoration: none !important;
}
.qt-btn.ghost {
	background: transparent;
	color: #ffe69b !important;
}
.qt-btn.danger {
	background: linear-gradient(180deg, #8a3636, #5c2222);
	border-color: #a85a5a;
}
.qt-btn.ban {
	background: linear-gradient(180deg, #6b1f1f, #3d1010);
	border-color: #c45a5a;
}
.qt-alert {
	margin-bottom: 12px;
	padding: 10px 12px;
	border-radius: 8px;
	border: 1px solid #8f6e47;
	background: rgba(201,162,39,0.12);
	color: #fff4db;
}
.qt-alert.error {
	border-color: #a85a5a;
	background: rgba(176,60,60,0.18);
}
.qt-tickets a { color: #ffe69b; }
.qt-tickets .is-open { color: #ffc8c8; font-weight: 700; }
.qt-cards {
	display: none;
}
.qt-mobile-card {
	background: rgba(40,28,20,0.92);
	border: 1px solid #6b5437;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 8px;
}
.qt-queue-item {
	border: 1px solid #6b5437;
	border-radius: 10px;
	padding: 12px;
	margin-bottom: 10px;
	background: rgba(40,28,20,0.92);
}
.qt-queue-item.is-regression {
	border-color: #c45a5a;
	box-shadow: 0 0 0 1px rgba(196,90,90,0.35);
}
.qt-form .qt-msg-pick {
	display: flex;
	flex-direction: column;
	gap: 8px;
	max-height: 320px;
	overflow: auto;
	margin: 0 0 12px;
}
.qt-form .qt-msg-pick label {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 8px;
	align-items: start;
	margin: 0;
	border: 1px solid #6b5437;
	border-radius: 8px;
	padding: 8px;
	cursor: pointer;
}
.qt-form .qt-msg-pick label.is-admin {
	border-color: #c4a46a;
}
.qt-form .qt-msg-pick .qt-msg-meta {
	display: block;
	font-size: 0.85rem;
	opacity: 0.8;
	margin-bottom: 4px;
}
.qt-form .qt-msg-pick .qt-msg-body {
	display: block;
	white-space: pre-wrap;
}
@media (max-width: 820px) {
	.qt-table-wrap { display: none; }
	.qt-cards { display: block; }
	.qt-grid { grid-template-columns: 1fr; }
	.qt-hero h1 { font-size: 1.35rem !important; }
	.qt-thread { max-height: 70vh; }
	.qt-stat-board { grid-template-columns: 1fr; gap: 16px; }
	.qt-fact {
		grid-template-columns: 1fr;
		gap: 2px;
	}
	.qt-fact dt { padding-top: 0; }
}
