/* Phase Courses - matches the existing Breakdance + LearnDash LD30 look. */
:root {
	--ph-green: #3fa435;
	--ph-lime: #95c11e;
	--ph-red: #dd3333;
	--ph-grad: linear-gradient(90deg, #3fa435 0%, #95c11e 100%);
	--ph-ink: #1d242b;
	--ph-text: #4a5568;
	--ph-muted: #6b7280;
	--ph-bg: #f9fafb;
	--ph-card: #fff;
	--ph-line: #d1d5db;
	--ph-soft: #e2e7ed;
	--ph-tint: #f3f6f0;
	--ph-radius: 6px;
	--ph-wrap: 1120px;
	--ph-font: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.phase { margin: 0; background: var(--ph-bg); color: var(--ph-ink); font: 400 16px/1.6 var(--ph-font); }
body.phase img { max-width: 100%; height: auto; }
body.phase :where(a) { color: var(--ph-green); }
body.phase :where(a:hover) { color: var(--ph-ink); }
body.phase :focus-visible { outline: 3px solid var(--ph-ink); outline-offset: 2px; }
[hidden] { display: none !important; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.phase-skip { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--ph-ink); color: #fff !important; padding: 10px 14px; border-radius: 3px; }
.phase-skip:focus { top: 8px; }
.phase svg { width: 1em; height: 1em; fill: currentColor; flex: none; }

.phase-container { max-width: var(--ph-wrap); margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.phase-section { padding-top: 100px; padding-bottom: 100px; }
.phase-narrow { max-width: 760px; }
.phase-main { min-height: 60vh; }
.phase-title { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; font-weight: 800; margin: 0 0 28px; letter-spacing: -0.01em; }
.phase-title--center { text-align: center; }
.phase-title--sm { font-size: 28px; }
.phase-lead { font-size: 18px; color: var(--ph-text); }
.phase-muted { color: var(--ph-muted); font-size: 14px; margin: 8px 0 0; }
.phase-content { color: var(--ph-ink); }
.phase-content > *:first-child { margin-top: 0; }
.phase-content p { margin: 0 0 1.1em; }
.phase-content h2, .phase-content h3 { line-height: 1.25; margin: 1.4em 0 .5em; }

/* Buttons */
.phase-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--ph-grad); color: #fff !important; border: 1px solid transparent; border-radius: 3px;
	padding: 14px 24px; font: 500 16px/1 var(--ph-font); text-decoration: none; cursor: pointer;
	transition: filter .15s ease, transform .15s ease; min-height: 46px;
}
.phase-btn:hover { filter: brightness(1.05); color: #fff; }
.phase-btn:active { transform: translateY(1px); }
.phase-btn--pill { border-radius: 999px; background: var(--ph-lime); font-weight: 600; font-size: 14px; padding: 12px 26px; min-height: 42px; }
.phase-btn--sm { padding: 8px 16px; font-size: 13px; min-height: 34px; }
.phase-btn--wide { min-width: min(100%, 380px); }
.phase-btn--ghost { background: #fff; color: var(--ph-ink) !important; border-color: var(--ph-line); }
.phase-btn--ghost:hover { border-color: var(--ph-green); filter: none; }
.phase-btn svg { width: 18px; height: 18px; }
.phase-link { text-decoration: none; font-size: 14px; font-weight: 500; display: inline-flex; align-items: center; gap: 4px; }
.phase-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 16px 0 0; }

/* Header */
.phase-header { background: var(--ph-bg); position: relative; z-index: 50; }
.phase-header__inner { display: flex; align-items: center; justify-content: space-between; padding-top: 20px; padding-bottom: 20px; min-height: 110px; }
.phase-header__logo img { display: block; width: 150px; height: auto; }
.phase-nav { display: flex; align-items: center; gap: 24px; }
.phase-nav__list { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; }
.phase-nav__list a { color: var(--ph-ink); text-decoration: none; font-size: 14px; font-weight: 500; padding: 8px 16px; display: inline-block; }
.phase-nav__list a:hover { color: var(--ph-green); }
.phase-nav__cta { margin-left: 8px; }
.phase-header__toggle, .phase-nav__close { display: none; background: none; border: 0; color: var(--ph-ink); cursor: pointer; padding: 8px; }
.phase-header__toggle svg, .phase-nav__close svg { width: 30px; height: 30px; }

/* Footer */
.phase-footer { background: var(--ph-grad); color: var(--ph-ink); }
.phase-footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.phase-footer p { margin: 0; font-size: 16px; }
.phase-social { list-style: none; display: flex; gap: 12px; margin: 0; padding: 0; }
.phase-social a { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: #fff; border-radius: 50%; }
.phase-social a:hover { color: var(--ph-ink); }
.phase-social svg { width: 14px; height: 14px; }

/* Cards / notices */
.phase-card { background: var(--ph-card); border: 1px solid var(--ph-soft); border-radius: var(--ph-radius); padding: 24px; }
.phase-notice { background: #fff8e1; border-left: 4px solid #e8b100; padding: 12px 16px; border-radius: 3px; margin: 0 0 16px; }
.phase-notice--error { background: #fdecec; border-left-color: var(--ph-red); }
.phase-notice ul { margin: 0; padding-left: 18px; }
.phase-pass { color: #2f7d22; font-weight: 600; }
.phase-fail { color: #b42318; font-weight: 600; }
.phase-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: var(--ph-soft); color: var(--ph-ink); }
.phase-badge--progress { background: var(--ph-lime); color: #fff; }
.phase-badge--complete { background: var(--ph-green); color: #fff; }
.phase-badge--expired { background: #fde8e8; color: #9b1c1c; }
.phase-badge--new { background: var(--ph-soft); }
.phase-chip { display: inline-flex; align-items: center; gap: 4px; background: #e8f3cf; color: #4d6b06; border-radius: 999px; padding: 2px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }

/* Forms (match Breakdance form styling) */
.phase form p { margin: 0 0 16px; }
.phase label:where(:not(.phase-option)) { display: block; font-weight: 500; margin: 0 0 8px; color: var(--ph-ink); }
.phase input[type=text], .phase input[type=email], .phase input[type=password], .phase input[type=url], .phase input[type=number] {
	width: 100%; background: #fff; border: 1px solid var(--ph-line); border-radius: 3px; padding: 12px 16px; font: 400 16px/1.5 var(--ph-font); color: var(--ph-text); min-height: 50px;
}
.phase input:focus { border-color: var(--ph-green); outline: 2px solid rgba(63,164,53,.25); outline-offset: 0; }
.phase input[type=checkbox] { width: 16px; height: 16px; accent-color: var(--ph-green); }
.phase .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; }
.phase .login-submit input[type=submit] { background: var(--ph-grad); color: #fff; border: 0; border-radius: 3px; padding: 14px 24px; font: 500 16px/1 var(--ph-font); cursor: pointer; min-height: 46px; }
.phase-login { max-width: 1080px; margin: 0 auto; padding-top: 40px; }
.phase-login form { position: relative; }
.phase #phase-loginform { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; }
.phase #phase-loginform > * { grid-column: 1 / -1; }
.phase #phase-loginform > .login-remember { grid-column: 1; order: 1; }
.phase #phase-loginform > .phase-lost { grid-column: 2; order: 2; text-align: right; font-weight: 500; }
.phase #phase-loginform > .login-submit { order: 3; }
.phase #phase-loginform > .cf-turnstile-br { display: none; }
.phase-lost a { color: var(--ph-ink); text-decoration: none; }
.phase-lost a:hover { color: var(--ph-green); }
.phase-login__register { margin-top: 24px; color: var(--ph-text); }
.phase-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.phase-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.phase-auth h2 { margin: 0 0 16px; font-size: 22px; }

/* Progress */
.phase-progress { margin: 0 0 4px; }
.phase-progress__bar { height: 8px; background: var(--ph-soft); border-radius: 999px; overflow: hidden; }
.phase-progress__bar span { display: block; height: 100%; background: var(--ph-lime); border-radius: 999px; transition: width .3s ease; }
.phase-progress__label { margin: 8px 0 0; font-size: 13px; color: var(--ph-muted); }
.phase-progress__label strong { color: var(--ph-green); text-transform: uppercase; font-weight: 700; margin-right: 6px; }
.phase-progress--sm .phase-progress__bar { height: 6px; }

/* Catalogue */
.phase-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.phase-course-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.phase-course-card__media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--ph-tint); }
.phase-course-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phase-course-card__ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #f4f8ec, #e7f1d6); }
.phase-course-card__ph img { width: 46%; height: auto; object-fit: contain; }
.phase-ribbon { position: absolute; top: 14px; left: 0; background: var(--ph-green); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 0 3px 3px 0; }
.phase-course-card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.phase-course-card__title { font-size: 22px; line-height: 1.25; margin: 0 0 6px; font-weight: 800; }
.phase-course-card__title a { color: var(--ph-ink); text-decoration: none; }
.phase-course-card__meta { color: var(--ph-muted); font-size: 13px; margin: 0 0 12px; }
.phase-course-card__body > p { color: var(--ph-text); font-size: 15px; }
.phase-course-card__foot { margin-top: auto; padding-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.phase-price { font-weight: 700; font-size: 18px; color: var(--ph-ink); }
.phase-price--lg { font-size: 28px; margin: 0; }

/* Course page */
.phase-course { padding-top: 70px; }
.phase-course__status { max-width: 760px; margin: 0 auto 40px; text-align: center; }
.phase-course__status .phase-actions { justify-content: center; }
.phase-course__status .phase-progress__label { text-align: left; }
.phase-course__intro { max-width: 760px; margin: 0 auto 40px; }
.phase-curriculum { max-width: 1080px; margin: 0 auto; }
.phase-curriculum__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.phase-curriculum__head h2 { margin: 0; font-size: 24px; font-weight: 700; }
.phase-curriculum > .phase-muted { margin: 4px 0 18px; }
.phase-lesson { background: #fff; border: 2px solid var(--ph-soft); border-radius: var(--ph-radius); margin: 0 0 14px; }
.phase-lesson summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; }
.phase-lesson summary::-webkit-details-marker { display: none; }
.phase-lesson__text { flex: 1; min-width: 0; }
.phase-lesson__title { display: block; color: var(--ph-ink) !important; text-decoration: none; font-weight: 500; font-size: 16px; }
a.phase-lesson__title:hover { color: var(--ph-green) !important; }
.phase-lesson__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; color: var(--ph-muted); font-size: 12px; font-weight: 600; margin-top: 2px; }
.phase-lesson__toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--ph-lime); font-size: 12px; font-weight: 700; }
.phase-lesson__toggle svg { width: 20px; height: 20px; background: var(--ph-lime); color: #fff; border-radius: 50%; padding: 2px; transform: rotate(90deg); transition: transform .2s; }
.phase-lesson[open] .phase-lesson__toggle svg { transform: rotate(-90deg); }
.phase-lesson__items { list-style: none; margin: 0; padding: 4px 20px 18px 62px; border-top: 1px solid var(--ph-soft); }
.phase-lesson__items li { display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 15px; }
.phase-lesson__items a { color: var(--ph-ink); text-decoration: none; }
.phase-lesson__items a:hover { color: var(--ph-green); }
.phase-lesson--quiz { display: flex; gap: 12px; align-items: center; padding: 18px 20px; }
.phase-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #c6ccd3; display: inline-flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.phase-dot.is-done { background: var(--ph-lime); border-color: var(--ph-lime); }
.phase-dot svg { width: 16px; height: 16px; }
.phase-dot--sm { width: 20px; height: 20px; }
.phase-dot--sm svg { width: 12px; height: 12px; }
.phase-dot--xs { width: 14px; height: 14px; border-width: 2px; border-color: var(--ph-lime); }
.phase-dot--xs svg { width: 9px; height: 9px; }
.phase-qicon { color: var(--ph-muted); display: inline-flex; width: 20px; justify-content: center; }
.phase-qicon svg { width: 18px; height: 18px; }

/* Dashboard */
.phase-dash__profile { text-align: center; margin: 0 auto 50px; max-width: 760px; }
.phase-dash__avatar img { width: 150px; height: 150px; border-radius: 50%; border: 5px solid var(--ph-soft); display: block; margin: 0 auto 14px; }
.phase-dash__name { font-size: 32px; font-weight: 800; margin: 0; line-height: 1.2; }
.phase-dash__links { margin: 6px 0 24px; font-size: 13px; color: var(--ph-muted); display: flex; gap: 8px; justify-content: center; }
.phase-dash__links a { color: var(--ph-muted); }
.phase-dash__stats { display: flex; justify-content: center; margin: 0; }
.phase-dash__stats div { display: flex; flex-direction: column-reverse; padding: 0 28px; border-left: 1px solid var(--ph-soft); }
.phase-dash__stats div:first-child { border-left: 0; }
.phase-dash__stats dt { font-size: 13px; color: var(--ph-muted); }
.phase-dash__stats dd { margin: 0; font-size: 34px; font-weight: 800; line-height: 1.3; }
.phase-dash__courses > h2 { font-size: 24px; font-weight: 700; margin: 0 0 16px; }
.phase-dash__course { margin-bottom: 18px; }
.phase-dash__course-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 16px; }
.phase-dash__course h3 { margin: 0 0 6px; font-size: 20px; }
.phase-dash__course h3 a { color: var(--ph-ink); text-decoration: none; }
.phase-dash__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; font-size: 13px; color: var(--ph-muted); }
.phase-dash__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.phase-dash__quizzes { margin-top: 14px; border-top: 1px solid var(--ph-soft); padding-top: 12px; }
.phase-dash__quizzes summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--ph-green); }
.phase-table-wrap { overflow-x: auto; margin-top: 10px; }
.phase-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.phase-table th, .phase-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--ph-soft); white-space: nowrap; }
.phase-table thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--ph-muted); }
.phase-table tbody th { font-weight: 500; white-space: normal; }
.phase-table a { color: var(--ph-ink); }
.phase-empty { text-align: center; }

/* Focus mode */
body.phase-focus { background: #fff; }
.phase-focus__wrap { display: flex; min-height: 100vh; }
.phase-sidebar { width: 350px; flex: none; background: #fff; border-right: 1px solid var(--ph-soft); position: sticky; top: 0; height: 100vh; overflow-y: auto; transition: margin-left .25s ease; }
.admin-bar .phase-sidebar { top: 32px; height: calc(100vh - 32px); }
.phase-sidebar__head { background: var(--ph-lime); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 22px 20px; position: sticky; top: 0; z-index: 2; min-height: 74px; }
.phase-sidebar__head a { color: #fff !important; text-decoration: none; font-weight: 700; display: flex; gap: 10px; align-items: center; font-size: 16px; }
.phase-sidebar__close { background: #fff; color: var(--ph-lime); border: 0; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; margin-right: -32px; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.phase-side-lesson { border-bottom: 1px solid var(--ph-soft); }
.phase-side-lesson summary { list-style: none; display: flex; gap: 10px; padding: 14px 20px; cursor: pointer; align-items: flex-start; }
.phase-side-lesson summary::-webkit-details-marker { display: none; }
.phase-side-lesson summary .phase-dot { margin-top: 3px; }
.phase-side-lesson__text { display: flex; flex-direction: column; min-width: 0; }
.phase-side-lesson__text a, .phase-side-lesson__text span { color: var(--ph-ink); text-decoration: none; font-size: 14px; font-weight: 500; }
.phase-side-lesson.is-current .phase-side-lesson__text > a, .phase-side-lesson.is-current .phase-side-lesson__text > span { color: var(--ph-lime); font-weight: 700; }
.phase-side-lesson__text small { color: var(--ph-lime); font-size: 11px; font-weight: 700; }
.phase-side-lesson ul { list-style: none; margin: 0; padding: 6px 20px 14px 30px; background: #f1f4f7; }
.phase-side-lesson li { display: flex; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.phase-side-lesson li a, .phase-side-lesson li span:not(.phase-dot):not(.phase-qicon) { color: var(--ph-ink); text-decoration: none; }
.phase-side-lesson li.is-current a { font-weight: 700; }
.phase-focus__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.phase-focus__bar { position: sticky; top: 0; z-index: 20; background: #fff; border-bottom: 1px solid var(--ph-soft); display: flex; align-items: center; gap: 18px; padding: 0 20px; min-height: 74px; }
.admin-bar .phase-focus__bar { top: 32px; }
.phase-focus__menu { display: none; background: none; border: 0; padding: 6px; cursor: pointer; color: var(--ph-ink); }
.phase-focus__menu svg { width: 24px; height: 24px; }
.phase-focus__logo img { display: block; width: 86px; height: auto; }
.phase-focus__progress { flex: 1; max-width: 360px; }
.phase-focus__progress p { margin: 0 0 6px; font-size: 12px; color: var(--ph-muted); }
.phase-focus__progress strong { color: var(--ph-green); text-transform: uppercase; margin-right: 4px; }
.phase-focus__adj { display: flex; gap: 18px; margin-left: auto; }
.phase-focus__adj a { color: var(--ph-lime); font-weight: 600; font-size: 13px; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.phase-focus__adj svg { width: 18px; height: 18px; }
.phase-focus__user a { display: flex; align-items: center; gap: 10px; color: var(--ph-ink); text-decoration: none; font-size: 13px; }
.phase-focus__user img { width: 40px; height: 40px; border-radius: 50%; }
.phase-focus__content { width: 100%; max-width: 960px; margin: 0 auto; padding: 50px 40px 80px; }
.phase-step-title { font-size: clamp(28px, 3.4vw, 42px); font-weight: 800; line-height: 1.15; margin: 0 0 22px; }
.phase-crumbs { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #eef2f5; border-radius: 3px; padding: 10px 14px; margin: 0 0 22px; font-size: 13px; }
.phase-crumbs p { margin: 0; }
.phase-crumbs a { color: var(--ph-lime); font-weight: 600; text-decoration: none; }
.phase-crumbs [aria-current] { color: var(--ph-muted); }
.phase-video { margin: 0 0 24px; background: #000; border-radius: 3px; overflow: hidden; }
.phase-video video { display: block; width: 100%; aspect-ratio: 16 / 9; background: #000; }
.phase-video--embed iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; display: block; }
.phase-materials, .phase-lesson-content { margin: 28px 0 0; }
.phase-materials h2, .phase-lesson-content h2 { font-size: 18px; margin: 0 0 10px; }
.phase-lesson-content { padding: 0; overflow: hidden; }
.phase-lesson-content__head { background: #f1f4f7; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; flex-wrap: wrap; }
.phase-lesson-content__head h2 { margin: 0; }
.phase-lesson-content__head p { margin: 0; font-size: 12px; color: var(--ph-muted); }
.phase-lesson-content__head strong { color: var(--ph-green); text-transform: uppercase; margin-right: 4px; }
.phase-lesson-content .phase-lesson__items { border-top: 0; padding: 8px 20px 14px; }
.phase-step-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ph-soft); }
.phase-step-nav__next { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.phase-step-nav__back { justify-self: center; }
.phase-step-nav .phase-link { color: var(--ph-lime); }
.phase-complete { margin: 0; }
.phase-gate-note { text-align: right; max-width: 260px; }
.phase-locked { text-align: center; padding: 40px 24px; }
.phase-locked svg { width: 40px; height: 40px; color: var(--ph-muted); }

/* Quiz */
.phase-quiz { margin-top: 10px; }
.phase-quiz__meta, .phase-quiz__previous { color: var(--ph-muted); font-size: 14px; }
.phase-q-step { margin: 0; }
.phase-q-step__count { font-size: 12px; color: var(--ph-muted); margin: 0 0 8px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.phase-q-step__text { font-size: 16px; margin: 0 0 16px; }
.phase-q-step__text p { margin: 0 0 8px; }
.phase-options { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.phase .phase-option { display: flex; align-items: center; gap: 16px; padding: 16px 20px; border: 1px solid var(--ph-line); border-radius: 3px; background: #fff; cursor: pointer; margin: 0; font-weight: 400; }
.phase-option:hover { border-color: var(--ph-lime); }
.phase-option input { width: 16px; height: 16px; accent-color: var(--ph-green); margin: 0; flex: none; }
.phase-option:has(input:checked) { border-color: var(--ph-green); box-shadow: inset 0 0 0 1px var(--ph-green); background: #f8fbf2; }
.phase-option.is-correct { border-color: var(--ph-green); background: #eef7e4; }
.phase-option.is-wrong { border-color: var(--ph-red); background: #fdeeee; }
.phase-cloze-text { line-height: 2.4; }
.phase .phase-cloze { display: inline-block; width: 150px; min-height: 40px; padding: 6px 10px; margin: 0 4px; vertical-align: baseline; }
.phase .phase-cloze[readonly] { background: #f6f7f8; }
.phase-cloze-ok { color: #2f7d22; font-size: 13px; }
.phase-cloze-bad { color: #b42318; font-size: 13px; }
.phase-q-nav { display: flex; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.phase-results { text-align: left; }
.phase-results h2 { font-size: 22px; margin: 0 0 8px; }
.phase-results__score { font-size: 40px; font-weight: 800; margin: 4px 0; }
.phase-results__msg { font-weight: 600; }
.phase-results ul.phase-results__facts { list-style: none; padding: 0; margin: 12px 0 18px; color: var(--ph-text); font-size: 15px; }
.phase-review { margin-top: 24px; display: grid; gap: 18px; }
.phase-review__item { border: 1px solid var(--ph-soft); border-radius: var(--ph-radius); padding: 18px 20px; background: #fff; }
.phase-review__item h3 { font-size: 13px; margin: 0 0 8px; text-transform: uppercase; letter-spacing: .05em; }
.phase-review__item .phase-option { cursor: default; }

/* Responsive */
@media (max-width: 1024px) {
	.phase-sidebar { position: fixed; left: 0; top: 0; z-index: 60; margin-left: -360px; visibility: hidden; }
	.phase-focus__wrap.sidebar-open .phase-sidebar { margin-left: 0; visibility: visible; box-shadow: 0 0 40px rgba(0,0,0,.18); }
	.phase-focus__menu { display: inline-flex; }
	.phase-sidebar__close { margin-right: 0; }
	.phase-focus__content { padding: 32px 24px 60px; }
}
@media (min-width: 1025px) {
	.phase-focus__wrap.sidebar-closed .phase-sidebar { margin-left: -350px; }
	.phase-focus__wrap.sidebar-closed .phase-focus__menu { display: inline-flex; }
}
@media (max-width: 782px) {
	.admin-bar .phase-focus__bar { top: 0; }
	.admin-bar .phase-sidebar { top: 0; height: 100vh; }
}
@media (max-width: 860px) {
	.phase-header__inner { min-height: 0; padding-top: 16px; padding-bottom: 16px; }
	.phase-header__logo img { width: 130px; }
	.phase-header__toggle { display: inline-flex; }
	.phase-nav { position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 70px 24px 24px; transform: translateX(100%); transition: transform .25s ease; box-shadow: -10px 0 40px rgba(0,0,0,.15); visibility: hidden; }
	.phase-nav.is-open { transform: none; visibility: visible; }
	.phase-nav__close { display: inline-flex; position: absolute; top: 14px; right: 14px; }
	.phase-nav__list { flex-direction: column; gap: 0; }
	.phase-nav__list a { padding: 14px 0; font-size: 16px; display: block; border-bottom: 1px solid var(--ph-soft); }
	.phase-nav__cta { margin: 20px 0 0; }
	.phase-section { padding-top: 48px; padding-bottom: 64px; }
	.phase-auth, .phase-form__row { grid-template-columns: 1fr; }
	.phase-focus__progress { display: none; }
	.phase-focus__user span { display: none; }
	.phase-focus__adj span { display: none; }
	.phase-focus__bar { gap: 12px; padding: 0 12px; min-height: 64px; }
	.phase-step-nav { grid-template-columns: 1fr 1fr; }
	.phase-step-nav__back { display: none; }
	.phase-dash__stats div { padding: 0 16px; }
	.phase-dash__stats dd { font-size: 28px; }
	.phase-lesson__items { padding-left: 20px; }
	.phase-lesson summary { padding: 16px; gap: 12px; }
	.phase-lesson__toggle span { display: none; }
	.phase-footer__inner { justify-content: center; text-align: center; }
	.phase-course { padding-top: 40px; }
}
@media (max-width: 480px) {
	.phase-focus__content { padding: 24px 16px 48px; }
	.phase-container { padding-left: 16px; padding-right: 16px; }
	.phase-option { padding: 14px 16px; }
	.phase-card { padding: 20px 18px; }
	.phase-step-nav .phase-btn { padding: 10px 16px; }
	.phase-crumbs { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}
