.sqa-wrap {
	max-width: 720px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: #1f2328;
}

.sqa-heading {
	font-size: 1.15rem;
	margin: 0 0 12px;
}

.sqa-ask-box {
	background: #f6f8fa;
	border: 1px solid #d0d7de;
	border-radius: 10px;
	padding: 18px 20px;
	margin-bottom: 28px;
}

.sqa-field-row {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

.sqa-field {
	flex: 1 1 200px;
	margin-bottom: 12px;
}

.sqa-field label {
	display: block;
	font-size: 0.85rem;
	font-weight: 600;
	margin-bottom: 4px;
}

.sqa-field input,
.sqa-field textarea,
.sqa-reply-input,
.sqa-reply-name {
	width: 100%;
	box-sizing: border-box;
	padding: 8px 10px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
	resize: vertical;
}

.sqa-btn {
	display: inline-block;
	border: none;
	border-radius: 6px;
	padding: 9px 18px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: opacity 0.15s ease;
}

.sqa-btn:disabled {
	opacity: 0.6;
	cursor: default;
}

.sqa-btn-primary {
	background: #2153cc;
	color: #fff;
}

.sqa-btn-primary:hover:not(:disabled) {
	opacity: 0.9;
}

.sqa-btn-secondary {
	background: #eaeef2;
	color: #1f2328;
}

.sqa-btn-secondary:hover:not(:disabled) {
	opacity: 0.85;
}

.sqa-notice {
	padding: 10px 12px;
	border-radius: 6px;
	margin-bottom: 12px;
	font-size: 0.9rem;
}

.sqa-notice.sqa-success {
	background: #dafbe1;
	color: #1a7f37;
	border: 1px solid #a3e6b3;
}

.sqa-notice.sqa-error {
	background: #ffebe9;
	color: #cf222e;
	border: 1px solid #ffc1bc;
}

.sqa-feed-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 10px;
}

.sqa-live-indicator {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.8rem;
	font-weight: 700;
	color: #1a7f37;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.sqa-live-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #1a7f37;
	animation: sqa-pulse 1.6s infinite;
}

@keyframes sqa-pulse {
	0% { box-shadow: 0 0 0 0 rgba(26, 127, 55, 0.5); }
	70% { box-shadow: 0 0 0 6px rgba(26, 127, 55, 0); }
	100% { box-shadow: 0 0 0 0 rgba(26, 127, 55, 0); }
}

.sqa-empty {
	color: #656d76;
	font-style: italic;
	padding: 16px 0;
}

.sqa-empty-inline {
	padding: 10px 0 2px;
	font-size: 0.88rem;
}

/* --- Search box ------------------------------------------------- */
.sqa-search-form {
	display: flex;
	gap: 10px;
	margin-bottom: 12px;
}

.sqa-search-input {
	flex: 1 1 auto;
	box-sizing: border-box;
	padding: 10px 14px;
	border: 1px solid #d0d7de;
	border-radius: 6px;
	font-size: 0.95rem;
	font-family: inherit;
	background: #fafbfc;
}

.sqa-search-btn {
	flex: 0 0 auto;
}

/* --- Filter bar ("Order By: Active  ×  Clear Filter") ------------ */
.sqa-filter-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid #e5e9ee;
	font-size: 0.85rem;
}

.sqa-filter-order-label {
	color: #656d76;
}

.sqa-order-select {
	border: none;
	background: transparent;
	color: #1a7f37;
	font-weight: 700;
	font-size: 0.85rem;
	cursor: pointer;
	padding: 2px 4px;
}

.sqa-clear-filter {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	border: none;
	background: transparent;
	color: #656d76;
	font-size: 0.85rem;
	cursor: pointer;
	padding: 2px 4px;
}

.sqa-clear-filter:hover {
	color: #1f2328;
	text-decoration: underline;
}

.sqa-clear-x {
	font-weight: 700;
}

/* --- List items --------------------------------------------------- */
.sqa-item {
	border: 1px solid #e5e9ee;
	border-radius: 8px;
	margin-bottom: 2px;
	background: #fff;
	overflow: hidden;
}

.sqa-item:nth-child(odd) {
	background: #fafcfa;
}

.sqa-item.sqa-pending {
	border-left: 3px solid #b45309;
}

.sqa-item.sqa-answered {
	border-left: 3px solid #1a7f37;
}

.sqa-item.sqa-open {
	border-color: #c6d7ee;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

/* Collapsed row (the part visible before expanding) */
.sqa-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 16px;
	cursor: pointer;
}

.sqa-row:hover {
	background: rgba(33, 83, 204, 0.04);
}

.sqa-row-avatar {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #eceff2;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sqa-row-body {
	flex: 1 1 auto;
	min-width: 0;
}

.sqa-row-title {
	font-weight: 700;
	font-size: 0.98rem;
	color: #1f2328;
	margin-bottom: 5px;
}

.sqa-row-meta {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	color: #656d76;
	font-size: 0.8rem;
}

.sqa-meta-item {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.sqa-meta-item svg {
	flex: 0 0 auto;
	opacity: 0.75;
}

.sqa-views-count {
	font-weight: 600;
	color: #1f2328;
}

.sqa-row-chevron {
	flex: 0 0 auto;
	font-size: 1.2rem;
	color: #99a1a8;
	line-height: 1;
	padding-top: 2px;
}

/* Expanded detail panel: full question + answer */
.sqa-row-detail {
	padding: 0 18px 16px 64px;
}

.sqa-question-block,
.sqa-answer-block {
	display: flex;
	gap: 12px;
}

.sqa-answer-block {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #d0d7de;
}

.sqa-avatar {
	flex: 0 0 auto;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #dbe4f3;
	color: #2153cc;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	font-size: 0.85rem;
}

.sqa-avatar-founder {
	background: #fff2cc;
	color: #b45309;
}

.sqa-question-body,
.sqa-answer-body {
	flex: 1 1 auto;
	min-width: 0;
}

.sqa-meta-line {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
	margin-bottom: 4px;
}

.sqa-student-name,
.sqa-founder-name {
	font-weight: 700;
	font-size: 0.9rem;
}

.sqa-time {
	color: #656d76;
	font-size: 0.78rem;
}

.sqa-badge {
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	padding: 2px 8px;
	border-radius: 999px;
}

.sqa-badge-pending {
	background: #fff2cc;
	color: #b45309;
}

.sqa-badge-founder {
	background: #cdeed7;
	color: #1a7f37;
}

.sqa-question-text,
.sqa-answer-text {
	margin: 0;
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.5;
}

.sqa-reply-box {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #d0d7de;
}

.sqa-reply-box textarea {
	margin-bottom: 8px;
}

.sqa-reply-box .sqa-reply-name {
	margin-bottom: 8px;
}

.sqa-load-more-wrap {
	text-align: center;
	margin-top: 8px;
}

.sqa-item.sqa-flash {
	animation: sqa-flash 1.2s ease;
}

@keyframes sqa-flash {
	0% { background: #fff8c5; }
	100% { background: #fff; }
}
