/* Workspace Grid */
.almaden-quiz-workspace {
	flex: 1;
	display: grid;
	grid-template-columns: 280px 1fr;
	min-height: 0;
}

.almaden-panel {
	min-width: 0;
	min-height: 0;
}

.almaden-sidebar {
	background: #ffffff;
	border-right: 1px solid var(--qb-line);
	padding: 16px;
	overflow: auto;
}

.almaden-workspace {
	background: #f8fafc;
	padding: 20px;
	overflow: auto;
}

/* Reorganized Cards (Clean Minimalist Containers, No heavy shadow depths) */
.almaden-sidebar-card {
	border: none;
	background: transparent;
}

.almaden-workspace-card {
	background: #ffffff;
	border: 1px solid var(--qb-line);
	border-radius: 12px;
	overflow: hidden;
	max-width: 1000px;
}

.almaden-sidebar-card-head, 
.almaden-workspace-head {
	padding: 16px 20px;
	border-bottom: 1px solid var(--qb-line);
}

.almaden-sidebar-card-head {
	padding: 0 4px 12px 4px;
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	flex-wrap: wrap;
	border-bottom: 1px solid var(--qb-line);
}

.almaden-sidebar-title, 
.almaden-workspace-title {
	margin: 0;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.2;
}

/* Chapter List: Borderless flat layout, hover highlights (Consistent with Book Editor) */
.almaden-sidebar-list {
	padding: 8px 0;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.almaden-chapter-item {
	border: 1px solid transparent;
	border-radius: 8px;
	background: transparent;
	padding: 8px 12px;
	transition: all 0.15s ease;
	cursor: pointer;
	color: var(--qb-text);
}

.almaden-chapter-item:hover {
	background: var(--qb-soft);
}

.almaden-chapter-item.is-active {
	background: var(--qb-soft);
	border-color: #cbd5e1;
	font-weight: 600;
}

.almaden-chapter-content {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.almaden-chapter-title {
	margin: 0;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-ellipsis: ellipsis;
}

.almaden-chapter-subtitle {
	margin: 2px 0 0;
	font-size: 10px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--qb-muted);
}

.almaden-chapter-meta {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-shrink: 0;
}

.almaden-question-count {
	font-size: 11px;
	font-weight: 700;
	color: var(--qb-success);
}

.almaden-question-count.is-empty {
	color: var(--qb-line);
}

.almaden-chapter-copy {
	width: 28px;
	height: 28px;
	border-radius: 6px;
	border: 1px solid var(--qb-line);
	background: #ffffff;
	color: var(--qb-muted);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: all 0.15s ease;
}

.almaden-chapter-copy:hover {
	color: var(--qb-text);
	background: var(--qb-soft);
	border-color: #cbd5e1;
}

/* Workspace Panels */
.almaden-workspace-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	padding: 20px 24px;
	background: #ffffff;
}

.almaden-workspace-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: flex-end;
}

/* Slide Previews & Raw Outputs */
.almaden-slide-empty-state {
	padding: 24px;
	border: 1px dashed var(--qb-line);
	border-radius: 8px;
	background: var(--qb-bg);
	color: var(--qb-muted);
	font-size: 12px;
	line-height: 1.6;
	text-align: center;
}

.almaden-preview-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.almaden-preview-shell {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.almaden-preview-nav-group {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.almaden-slide-indicator {
	font-weight: 600;
	color: var(--qb-text);
	font-size: 12px;
}

.almaden-slide-dots {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.almaden-slide-dot {
	width: 8px;
	height: 8px;
	border-radius: 999px;
	border: none;
	background: var(--qb-line);
	padding: 0;
}

.almaden-slide-dot.is-filled {
	background: var(--qb-muted);
}

.almaden-slide-dot.is-active {
	background: var(--qb-dark);
	transform: scale(1.1);
}

.almaden-preview-card {
	background: #ffffff;
	border: 1px solid var(--qb-line);
	border-radius: 8px;
	padding: 20px;
}

.almaden-slide-head h4 {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.almaden-slide-field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin-top: 16px;
}

.almaden-answer-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.almaden-answer-row {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	gap: 10px;
	align-items: center;
	border: 1px solid var(--qb-line);
	border-radius: 6px;
	padding: 8px 10px;
	background: #ffffff;
}

.almaden-answer-row input[type="text"] {
	border: 1px solid var(--qb-line);
	padding: 8px 10px;
	background: #ffffff;
	border-radius: 4px;
	font-size: 12px;
}

.almaden-answer-row input[type="checkbox"] {
	width: 16px;
	height: 16px;
}

.almaden-raw {
	white-space: pre-wrap;
	word-break: break-word;
	line-height: 1.6;
	font-size: 13px;
	color: var(--qb-text);
	background: var(--qb-bg);
	border: 1px solid var(--qb-line);
	border-radius: 8px;
	padding: 16px;
	min-height: 240px;
}
