/* ==========================================================================
   BIC EDU — IELTS Mock Platform
   Design system + components. Everything scoped under .bic-app.
   Font: Montserrat. Timer background: #E5E7EB.
   ========================================================================== */

.bic-app {
	--bic-navy: #0b2a4a;
	--bic-navy-900: #08203a;
	--bic-blue: #1e5bb8;
	--bic-red: #d32f2f;
	--bic-text: #1a1a2e;
	--bic-muted: #6b7280;
	--bic-bg: #ffffff;
	--bic-surface: #f7f8fa;
	--bic-border: #e5e7eb;
	--bic-timer-bg: #e5e7eb;
	--bic-success: #16a34a;
	--bic-danger: #dc2626;
	--bic-radius: 14px;
	--bic-radius-sm: 10px;
	--bic-shadow: 0 2px 10px rgba(11, 42, 74, 0.06);
	--bic-shadow-lg: 0 12px 30px rgba(11, 42, 74, 0.12);
	--bic-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

	display: block;
	width: 100%;
	font-family: var(--bic-font);
	color: var(--bic-text);
	line-height: 1.5;
	box-sizing: border-box;
}

.bic-app *,
.bic-app *::before,
.bic-app *::after {
	box-sizing: border-box;
}

.bic-app h1,
.bic-app h2,
.bic-app h3,
.bic-app h4 {
	font-family: var(--bic-font);
	color: var(--bic-text);
	margin: 0 0 0.5em;
	font-weight: 700;
}

.bic-app p {
	margin: 0 0 0.75em;
}

/* ---------- Layout shell ---------- */
.bic-shell {
	width: 100%;
	max-width: 1240px;
	margin: 0 auto;
	padding: 24px 20px 80px;
}

.bic-page-title {
	font-size: 32px;
	font-weight: 700;
	margin: 8px 0 20px;
}

/* ---------- Navbar ---------- */
.bic-navbar {
	display: flex;
	align-items: center;
	gap: 24px;
	background: var(--bic-bg);
	border: 1px solid var(--bic-border);
	border-radius: 18px;
	box-shadow: var(--bic-shadow);
	padding: 14px 22px;
	margin-bottom: 28px;
	position: sticky;
	top: 12px;
	z-index: 30;
}

.bic-navbar__logo img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: block;
}

.bic-navbar__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
	font-weight: 600;
	color: var(--bic-navy);
}

.bic-navbar__menu a {
	color: var(--bic-navy);
	text-decoration: none;
	transition: color 0.15s ease;
}

.bic-navbar__menu a:hover {
	color: var(--bic-blue);
}

.bic-navbar__actions {
	margin-left: auto;
	display: flex;
	gap: 12px;
}

/* ---------- Buttons ---------- */
.bic-btn {
	font-family: var(--bic-font);
	font-weight: 600;
	font-size: 15px;
	border-radius: 12px;
	padding: 11px 22px;
	cursor: pointer;
	border: 1px solid transparent;
	transition: transform 0.12s ease, background 0.15s ease, box-shadow 0.15s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	line-height: 1;
}

.bic-btn:active {
	transform: translateY(1px);
}

.bic-btn--primary {
	background: var(--bic-navy);
	color: #fff;
}

.bic-btn--primary:hover {
	background: var(--bic-navy-900);
	box-shadow: var(--bic-shadow-lg);
}

.bic-btn--outline {
	background: #fff;
	color: var(--bic-navy);
	border-color: var(--bic-border);
}

.bic-btn--outline:hover {
	border-color: var(--bic-navy);
}

.bic-btn--ghost {
	background: var(--bic-surface);
	color: var(--bic-text);
}

.bic-btn:disabled,
.bic-btn[aria-disabled="true"] {
	opacity: 0.55;
	cursor: not-allowed;
}

/* ---------- Collection / test grid ---------- */
.bic-collections {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 32px 40px;
}

.bic-collection {
	min-width: 0;
}

.bic-collection__title {
	text-align: center;
	font-size: 22px;
	font-weight: 700;
	color: var(--bic-navy);
	margin-bottom: 18px;
}

.bic-collection--featured .bic-collection__title {
	color: var(--bic-red);
}

.bic-collection__title .bic-spark {
	color: var(--bic-red);
}

.bic-tests {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 14px;
}

.bic-test-card {
	background: var(--bic-bg);
	border: 1px solid var(--bic-border);
	border-radius: 16px;
	padding: 18px 16px;
	box-shadow: var(--bic-shadow);
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
	min-height: 170px;
	display: flex;
	flex-direction: column;
}

.bic-test-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--bic-shadow-lg);
	border-color: #cfd8e6;
}

.bic-test-card__title {
	font-weight: 700;
	font-size: 16px;
	margin-bottom: 12px;
	color: var(--bic-navy);
}

.bic-test-card__sections {
	list-style: none;
	margin: 0 0 4px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.bic-test-card__sections a {
	color: var(--bic-text);
	text-decoration: none;
	font-size: 14.5px;
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 7px 10px;
	border-radius: 8px;
	transition: background 0.15s ease, color 0.15s ease;
}

.bic-test-card__sections a::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #c4ccda;
	flex: 0 0 auto;
	transition: background 0.15s ease, transform 0.15s ease;
}

.bic-test-card__sections a:hover {
	background: #f2f6fc;
	color: var(--bic-blue);
}

.bic-test-card__sections a:hover::before {
	background: var(--bic-blue);
	transform: scale(1.3);
}

.bic-badge {
	font-size: 11px;
	font-weight: 600;
	border-radius: 999px;
	padding: 2px 8px;
}

.bic-badge--done {
	background: rgba(22, 163, 74, 0.12);
	color: var(--bic-success);
}

.bic-badge--progress {
	background: rgba(30, 91, 184, 0.12);
	color: var(--bic-blue);
}

.bic-test-card__progress {
	margin-top: auto;
	font-size: 12px;
	color: var(--bic-muted);
	padding-top: 10px;
}

/* ---------- Section banner + timer ---------- */
.bic-banner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	background: var(--bic-surface);
	border: 1px solid var(--bic-border);
	border-radius: var(--bic-radius);
	padding: 18px 24px;
	margin-bottom: 18px;
}

.bic-banner__title {
	font-size: 18px;
	font-weight: 700;
	margin: 0 0 4px;
}

.bic-banner__sub {
	font-size: 13px;
	color: var(--bic-muted);
	margin: 0;
}

.bic-timer {
	background: var(--bic-timer-bg);
	color: var(--bic-text);
	font-weight: 700;
	font-size: 22px;
	font-variant-numeric: tabular-nums;
	border-radius: 12px;
	padding: 10px 18px;
	min-width: 92px;
	text-align: center;
}

.bic-timer--warning {
	color: var(--bic-danger);
	animation: bic-pulse 1s ease-in-out infinite;
}

@keyframes bic-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.55; }
}

/* ---------- Stepper (L -> R -> W) ---------- */
.bic-stepper {
	display: flex;
	gap: 10px;
	margin-bottom: 18px;
	flex-wrap: wrap;
}

.bic-step {
	flex: 1;
	min-width: 120px;
	padding: 10px 14px;
	border-radius: var(--bic-radius-sm);
	border: 1px solid var(--bic-border);
	background: #fff;
	font-size: 13px;
	font-weight: 600;
	color: var(--bic-muted);
	display: flex;
	align-items: center;
	gap: 8px;
}

.bic-step--active {
	border-color: var(--bic-navy);
	color: var(--bic-navy);
}

.bic-step--done {
	border-color: var(--bic-success);
	color: var(--bic-success);
}

.bic-step__dot {
	width: 22px;
	height: 22px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	background: var(--bic-surface);
}

.bic-step--active .bic-step__dot { background: var(--bic-navy); color: #fff; }
.bic-step--done .bic-step__dot { background: var(--bic-success); color: #fff; }

/* ---------- Two-pane reading ---------- */
.bic-twopane {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	align-items: stretch;
}

.bic-pane {
	background: #fff;
	border: 1px solid var(--bic-border);
	border-radius: var(--bic-radius);
	padding: 22px 24px;
	height: 70vh;
	overflow-y: auto;
}

.bic-pane h3 {
	font-size: 22px;
}

.bic-pane::-webkit-scrollbar { width: 8px; }
.bic-pane::-webkit-scrollbar-thumb { background: var(--bic-border); border-radius: 8px; }

/* ---------- Questions ---------- */
.bic-qgroup {
	margin-bottom: 26px;
}

.bic-qgroup__head {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 4px;
}

.bic-qgroup__instr {
	font-size: 14px;
	color: var(--bic-muted);
	margin-bottom: 14px;
}

.bic-question {
	margin-bottom: 16px;
}

.bic-question__text {
	margin-bottom: 6px;
	font-size: 15px;
}

.bic-question__num {
	font-weight: 700;
	margin-right: 6px;
}

.bic-options {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.bic-options label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
	font-size: 15px;
}

.bic-input {
	font-family: var(--bic-font);
	border: 1px solid var(--bic-border);
	border-radius: 8px;
	padding: 8px 12px;
	font-size: 15px;
	width: 100%;
	max-width: 280px;
}

.bic-input:focus,
.bic-textarea:focus {
	outline: 2px solid var(--bic-blue);
	outline-offset: 1px;
	border-color: var(--bic-blue);
}

/* ---------- Listening player ---------- */
.bic-audio {
	width: 100%;
	margin-bottom: 18px;
}

/* ---------- Writing ---------- */
.bic-writing {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	align-items: start;
}

.bic-task {
	background: #fff;
	border: 1px solid var(--bic-border);
	border-radius: var(--bic-radius);
	padding: 22px 24px;
}

.bic-task__prompt {
	border: 1px solid var(--bic-text);
	border-radius: 8px;
	padding: 18px;
	margin: 14px 0;
	font-size: 16px;
}

.bic-task__img {
	max-width: 100%;
	border: 1px solid var(--bic-border);
	border-radius: 8px;
}

.bic-textarea {
	font-family: var(--bic-font);
	width: 100%;
	min-height: 480px;
	border: 1px solid var(--bic-border);
	border-radius: var(--bic-radius);
	padding: 18px;
	font-size: 16px;
	resize: vertical;
}

.bic-writing__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 12px;
}

.bic-wordcount {
	font-weight: 600;
	color: var(--bic-muted);
}

.bic-wordcount--ok { color: var(--bic-success); }

/* ---------- Bottom nav bar ---------- */
.bic-bottombar {
	position: sticky;
	bottom: 0;
	background: var(--bic-navy);
	color: #fff;
	border-radius: 14px;
	padding: 12px 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 18px;
	flex-wrap: wrap;
}

.bic-bottombar .bic-chip {
	background: #fff;
	color: var(--bic-navy);
	border: none;
	border-radius: 10px;
	padding: 8px 16px;
	font-weight: 600;
	font-family: var(--bic-font);
	cursor: pointer;
}

.bic-bottombar .bic-chip--active {
	background: var(--bic-blue);
	color: #fff;
}

/* ---------- Results ---------- */
.bic-results-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
	max-width: 760px;
}

.bic-score-card {
	background: var(--bic-surface);
	border-radius: var(--bic-radius);
	padding: 22px 24px;
	position: relative;
}

.bic-score-card__label {
	font-weight: 700;
	margin-bottom: 8px;
}

.bic-score-card__value {
	font-size: 40px;
	font-weight: 700;
}

.bic-score-card__counts {
	position: absolute;
	top: 22px;
	right: 24px;
	font-size: 13px;
	color: var(--bic-muted);
	display: flex;
	flex-direction: column;
	gap: 2px;
	text-align: right;
}

.bic-gauge {
	--v: 0;
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background: conic-gradient(var(--bic-blue) calc(var(--v) * 1%), var(--bic-border) 0);
	display: grid;
	place-items: center;
}

.bic-gauge__inner {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: #fff;
	display: grid;
	place-items: center;
	font-weight: 700;
	font-size: 18px;
}

.bic-answers-table {
	width: 100%;
	border-collapse: collapse;
	margin: 12px 0 28px;
	font-size: 15px;
}

.bic-answers-table th {
	text-align: left;
	padding: 10px 14px;
	border-bottom: 2px solid var(--bic-border);
	font-weight: 600;
}

.bic-answers-table td {
	padding: 10px 14px;
	border-bottom: 1px solid var(--bic-border);
}

.bic-answers-table tr.is-wrong td { background: rgba(220, 38, 38, 0.06); }
.bic-answers-table tr.is-correct td { background: rgba(22, 163, 74, 0.06); }

.bic-section-toggle {
	background: var(--bic-navy);
	color: #fff;
	border: none;
	border-radius: 999px;
	padding: 8px 18px;
	font-weight: 600;
	font-family: var(--bic-font);
	cursor: pointer;
	margin: 8px 0;
}

/* ---------- Feedback (writing) ---------- */
.bic-feedback {
	background: var(--bic-surface);
	border-radius: var(--bic-radius);
	padding: 20px 22px;
	margin-top: 16px;
}

.bic-criteria {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 10px;
	margin: 12px 0;
}

.bic-criterion {
	background: #fff;
	border: 1px solid var(--bic-border);
	border-radius: 10px;
	padding: 10px 14px;
	display: flex;
	justify-content: space-between;
}

/* ---------- Helpers ---------- */
.bic-notice {
	background: var(--bic-surface);
	border: 1px solid var(--bic-border);
	border-radius: var(--bic-radius);
	padding: 28px;
	text-align: center;
}

.bic-skeleton {
	background: linear-gradient(90deg, #eef0f3 25%, #f7f8fa 50%, #eef0f3 75%);
	background-size: 200% 100%;
	animation: bic-shimmer 1.3s infinite;
	border-radius: 8px;
}

@keyframes bic-shimmer {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.bic-hidden { display: none !important; }

.bic-back {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--bic-surface);
	border-radius: 12px;
	padding: 9px 18px;
	font-weight: 600;
	text-decoration: none;
	color: var(--bic-text);
	margin-bottom: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.bic-collections { grid-template-columns: 1fr; }
	.bic-tests { grid-template-columns: repeat(2, 1fr); }
	.bic-twopane,
	.bic-writing { grid-template-columns: 1fr; }
	.bic-pane { height: auto; max-height: 60vh; }
	.bic-results-grid { grid-template-columns: 1fr; }
	.bic-criteria { grid-template-columns: 1fr; }
	.bic-page-title { font-size: 26px; }
}

@media (max-width: 560px) {
	.bic-tests { grid-template-columns: 1fr; }
}

/* ---------- Question navigator (palette) + flags ---------- */
.bic-bottombar { justify-content: space-between; align-items: center; }

.bic-palette {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	flex: 1;
}

.bic-navq {
	min-width: 34px;
	height: 34px;
	padding: 0 6px;
	border-radius: 8px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	background: transparent;
	color: #fff;
	font-weight: 600;
	font-family: var(--bic-font);
	font-variant-numeric: tabular-nums;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.bic-navq:hover { border-color: #fff; }
.bic-navq.answered { background: #fff; color: var(--bic-navy); border-color: #fff; }
.bic-navq.flagged { box-shadow: inset 0 0 0 2px var(--bic-red); }

.bic-flag {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--bic-border);
	font-size: 15px;
	margin-left: 8px;
	line-height: 1;
	vertical-align: middle;
}
.bic-flag:hover { color: var(--bic-red); }
.bic-question.is-flagged .bic-flag { color: var(--bic-red); }

.bic-question--focus {
	outline: 2px solid var(--bic-blue);
	outline-offset: 4px;
	border-radius: 8px;
}

.bic-test-card__start {
	width: 100%;
	justify-content: center;
	margin-bottom: 12px;
}

/* ---------- Fullscreen button ---------- */
.bic-banner__right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
}

.bic-fs-btn {
	width: 44px;
	height: 44px;
	border-radius: 10px;
	border: 1px solid var(--bic-border);
	background: var(--bic-bg);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	transition: background 0.15s ease, border-color 0.15s ease;
}

.bic-fs-btn:hover { background: var(--bic-surface); border-color: var(--bic-navy); }
.bic-fs-btn--on { background: var(--bic-navy); border-color: var(--bic-navy); }

/* CSS-drawn expand/compress icon */
.bic-fs-icon {
	position: relative;
	width: 16px;
	height: 16px;
	display: block;
}
.bic-fs-icon::before,
.bic-fs-icon::after {
	content: '';
	position: absolute;
	width: 6px;
	height: 6px;
}
.bic-fs-icon::before {
	top: 0; left: 0;
	border-top: 2px solid var(--bic-navy);
	border-left: 2px solid var(--bic-navy);
}
.bic-fs-icon::after {
	bottom: 0; right: 0;
	border-bottom: 2px solid var(--bic-navy);
	border-right: 2px solid var(--bic-navy);
}
.bic-fs-btn--on .bic-fs-icon::before {
	border-color: #fff;
	top: 3px; left: 3px;
	transform: rotate(180deg);
}
.bic-fs-btn--on .bic-fs-icon::after {
	border-color: #fff;
	bottom: 3px; right: 3px;
	transform: rotate(180deg);
}

/* ---------- Hide theme comments notice on test pages ---------- */
.bom-comments-closed { display: none !important; }

/* ---------- Fullscreen page template ---------- */
body.bic-fullscreen {
	margin: 0;
	background: #fff;
}

body.bic-fullscreen .bic-app {
	min-height: 100vh;
}

body.bic-fullscreen .bic-shell {
	padding-top: 28px;
}

/* =============================================================================
   Authentic computer-delivered (Digital) IELTS — test-taking screen only.
   Scoped to .bic-app--test so the list/results pages keep their own theme.
   ========================================================================== */
.bic-app--test{
  position:fixed; inset:0; z-index:99990; background:#fff;
  font-family:Arial, Helvetica, "Segoe UI", sans-serif;
  color:#1a1a1a; line-height:1.5;
}
.bic-app--test #bic-section{ display:flex; flex-direction:column; height:100%; }

/* hide the 1-2-3 stepper — real IELTS doesn't show it on the test screen */
.bic-app--test .bic-stepper{ display:none !important; }

/* ---- Top bar ---- */
.bic-app--test .bic-banner{
  flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:16px;
  background:#f1f3f5; border:0; border-bottom:1px solid #c2c8d0;
  border-radius:0 !important; box-shadow:none !important;
  padding:8px 18px; margin:0; position:static;
}
.bic-app--test .bic-banner__title{ font-size:15px; font-weight:700; margin:0; color:#11243f; }
.bic-app--test .bic-banner__sub{ font-size:12px; color:#5b6470; margin:2px 0 0; max-width:62vw; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bic-app--test .bic-banner__right{ display:flex; align-items:center; gap:12px; }
.bic-app--test .bic-timer{
  display:inline-flex; align-items:center; gap:7px;
  font-size:20px; font-weight:700; color:#11243f; letter-spacing:.5px;
  background:#fff; border:1px solid #c2c8d0; border-radius:8px; padding:5px 14px; min-width:88px; justify-content:center;
}
.bic-app--test .bic-timer::before{
  content:""; width:15px; height:15px; border-radius:50%;
  border:2px solid currentColor; position:relative; flex:0 0 auto;
  background:
    linear-gradient(currentColor,currentColor) center/2px 6px no-repeat,
    linear-gradient(currentColor,currentColor) center/5px 2px no-repeat;
}
.bic-app--test .bic-timer--warning{ color:#d32f2f; border-color:#f0b4b4; background:#fdecec; }
.bic-app--test .bic-fs-btn{
  width:38px; height:38px; border:1px solid #c2c8d0; border-radius:8px; background:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center;
}
.bic-app--test .bic-fs-btn{ color:#11243f; padding:0; }
.bic-app--test .bic-fs-btn svg{ width:18px; height:18px; display:block; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.bic-app--test .bic-fs-btn:hover{ background:#e9edf2; border-color:#9aa3b0; }
.bic-app--test .bic-fs-btn--on{ background:#11243f !important; border-color:#11243f !important; color:#fff; }

/* ---- Content area ---- */
.bic-app--test .bic-twopane{
  flex:1 1 auto; min-height:0; display:flex; gap:0; margin:0;
}
.bic-app--test .bic-pane{
  flex:1 1 50%; min-width:0; overflow-y:auto; padding:22px 26px;
  background:#fff; border:0 !important; border-radius:0 !important; height:auto !important;
}
.bic-app--test .bic-pane:first-child{ border-right:2px solid #c2c8d0 !important; background:#fcfcfd; }

/* listening/writing wrappers become column flex fillers (but NOT the reading two-pane itself) */
.bic-app--test #bic-section > div:not(.bic-banner):not(.bic-bottombar):not(.bic-stepper):not(.bic-twopane){
  flex:1 1 auto; min-height:0; display:flex; flex-direction:column;
}
.bic-app--test .bic-audio{
  flex:0 0 auto; width:100%; margin:0; border-bottom:1px solid #c2c8d0; background:#eef0f2; padding:8px 18px;
}

/* passages / reading text */
.bic-app--test .bic-passage h3,
.bic-app--test .bic-pane h3{ font-size:17px; font-weight:700; margin:0 0 10px; color:#11243f; }
.bic-app--test .bic-passage,
.bic-app--test .bic-pane p{ font-size:15.5px; line-height:1.7; color:#1a1a1a; }
.bic-app--test .bic-passage p{ margin:0 0 14px; }

/* question groups + questions */
.bic-app--test .bic-qgroup{ margin:0 0 26px; }
.bic-app--test .bic-qgroup__head{ font-size:15px; font-weight:700; color:#11243f; margin:0 0 4px; }
.bic-app--test .bic-qgroup__instr{ font-size:13.5px; color:#5b6470; margin:0 0 14px; font-style:italic; }
.bic-app--test .bic-question{ margin:0 0 16px; padding:0; border:0; background:none; }
.bic-app--test .bic-question--focus{ background:#fff7d6; }
.bic-app--test .bic-question__text{ display:flex; align-items:flex-start; gap:8px; font-size:15px; margin:0 0 8px; }
.bic-app--test .bic-question__num{
  flex:0 0 auto; min-width:24px; height:24px; padding:0 5px; border-radius:3px;
  background:#11243f; color:#fff; font-size:13px; font-weight:700;
  display:inline-flex; align-items:center; justify-content:center;
}
.bic-app--test .bic-flag{
  margin-left:auto; flex:0 0 auto; border:0; background:none; cursor:pointer; color:#9aa3b0; font-size:16px; line-height:1; padding:2px;
}
.bic-app--test .bic-question.is-flagged .bic-flag{ color:#e8830c; }
.bic-app--test .bic-input{
  width:100%; max-width:340px; height:38px; border:1px solid #8a93a0; border-radius:3px; padding:0 12px;
  font-family:inherit; font-size:15px; background:#fff;
}
.bic-app--test .bic-input:focus{ outline:2px solid #2660d4; border-color:#2660d4; }
.bic-app--test .bic-options{ display:flex; flex-direction:column; gap:8px; }
.bic-app--test .bic-options label{
  display:flex; align-items:center; gap:10px; padding:9px 12px; border:1px solid #cfd5dd; border-radius:4px;
  cursor:pointer; font-size:15px; background:#fff; transition:.12s;
}
.bic-app--test .bic-options label:hover{ border-color:#2660d4; background:#f4f8ff; }
.bic-app--test .bic-options input{ accent-color:#2660d4; width:17px; height:17px; }

/* ---- Bottom bar with question palette ---- */
.bic-app--test .bic-bottombar{
  flex:0 0 auto; display:flex; align-items:center; gap:12px;
  background:#f1f3f5; border-top:1px solid #c2c8d0; padding:9px 16px; margin:0;
}
.bic-app--test .bic-palette{
  flex:1 1 auto; display:flex; flex-wrap:nowrap; gap:6px; overflow-x:auto; padding:2px;
}
.bic-app--test .bic-navq{
  flex:0 0 auto; min-width:32px; height:30px; padding:0 6px; border:1px solid #9aa3b0; border-radius:3px;
  background:#fff; color:#1a1a1a; font-family:inherit; font-size:13px; cursor:pointer; position:relative;
  display:inline-flex; align-items:center; justify-content:center;
}
.bic-app--test .bic-navq:hover{ border-color:#2660d4; }
.bic-app--test .bic-navq.answered{ background:#d9e2f3; border-color:#2660d4; font-weight:700; text-decoration:underline; }
.bic-app--test .bic-navq.is-current{ box-shadow:inset 0 0 0 2px #11243f; border-color:#11243f; }
.bic-app--test .bic-navq.flagged::after{
  content:""; position:absolute; top:-3px; right:-3px; width:0; height:0;
  border-left:7px solid transparent; border-top:7px solid #e8830c;
}
.bic-app--test .bic-chip{
  flex:0 0 auto; background:#2660d4; color:#fff; border:0; border-radius:8px;
  padding:10px 22px; font-family:inherit; font-size:15px; font-weight:700; cursor:pointer;
}
.bic-app--test .bic-chip:hover{ background:#1c4fb5; }

/* ---- Writing ---- */
.bic-app--test .bic-writing{ flex:1 1 auto; min-height:0; display:flex; gap:0; margin:0 !important; }
.bic-app--test .bic-task{ flex:1 1 42%; min-width:0; overflow-y:auto; padding:22px 26px; border-right:2px solid #c2c8d0; background:#fcfcfd; }
.bic-app--test .bic-task h3{ font-size:17px; font-weight:700; color:#11243f; }
.bic-app--test .bic-task__img{ max-width:100%; height:auto; margin-top:12px; border:1px solid #e2e7f0; border-radius:6px; }
.bic-app--test .bic-writing > div:last-child{ flex:1 1 58%; min-width:0; display:flex; flex-direction:column; padding:16px 20px; }
.bic-app--test .bic-textarea{
  flex:1 1 auto; width:100%; min-height:0; resize:none; border:1px solid #8a93a0; border-radius:4px;
  padding:14px 16px; font-family:inherit; font-size:15px; line-height:1.7;
}
.bic-app--test .bic-textarea:focus{ outline:2px solid #2660d4; border-color:#2660d4; }
.bic-app--test .bic-writing__bar{ flex:0 0 auto; display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:12px; }
.bic-app--test .bic-wordcount{ font-size:14px; color:#5b6470; }
.bic-app--test .bic-wordcount--ok .bic-wc{ color:#16a34a; font-weight:700; }
.bic-app--test .bic-feedback{ margin-top:14px; padding:14px 16px; border:1px solid #c2c8d0; border-radius:8px; background:#f7f9fc; }

/* ---- Mobile: stack the two panes, palette scrolls ---- */
@media(max-width:820px){
  .bic-app--test .bic-twopane,
  .bic-app--test .bic-writing{ flex-direction:column; }
  .bic-app--test .bic-pane,
  .bic-app--test .bic-task{ flex:1 1 auto; border-right:0 !important; border-bottom:2px solid #c2c8d0; }
  .bic-app--test .bic-pane:first-child{ max-height:42vh; }
  .bic-app--test .bic-banner__sub{ display:none; }
  .bic-app--test .bic-chip{ padding:10px 14px; }
}
