/* ============================================================
   Proctor House Academy — app.css
   Design tokens taken directly from the approved prototype so the
   WordPress build is visually identical, not a re-interpretation.
   ============================================================ */

:root {
	--ph-blue: #0070B0;
	--ph-blue-dark: #005D93;
	--ph-blue-darker: #004A77;
	--ph-blue-tint: #E9F4FA;
	--ph-blue-tint-2: #CFE6F3;
	--ph-navy: #0F2B3D;
	--ph-navy-2: #1E4A63;
	--ph-ink: #17222B;
	--ph-muted: #5C6B77;
	--ph-faint: #8A98A4;
	--ph-border: #E3E9ED;
	--ph-border-2: #EFF3F5;
	--ph-bg: #F5F7F9;
	--ph-bg-soft: #F0F3F5;
	--ph-white: #fff;
	--ph-green: #1E8E5A;
	--ph-green-tint: #E5F4EC;
	--ph-amber: #C77E1F;
	--ph-amber-tint: #FBF3E6;
	--ph-red: #C0392B;
	--ph-red-tint: #F8ECEA;
	--radius: 12px;
	--radius-sm: 8px;
	--shadow: 0 8px 24px -14px rgba(11, 42, 60, .18);
	--font: 'Century Gothic', 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; }
body.ph-app, body { margin: 0; background: var(--ph-bg); color: var(--ph-ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0 0 8px; font-weight: 700; }
.ph-muted { color: var(--ph-faint); font-size: 13px; }
.ph-center { text-align: center; }
.ph-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.ph-container--narrow { max-width: 760px; }

/* ---------- Buttons ---------- */
.ph-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: var(--radius-sm); padding: 12px 20px; font: 600 14px var(--font); cursor: pointer; }
.ph-btn--primary { background: var(--ph-blue); color: #fff; }
.ph-btn--primary:hover { background: var(--ph-blue-dark); }
.ph-btn--outline { background: #fff; color: var(--ph-blue); border: 1.5px solid var(--ph-blue-tint-2); }
.ph-btn--outline:hover { background: var(--ph-blue-tint); }
.ph-btn--ghost { background: none; color: var(--ph-muted); border: 1.5px solid var(--ph-border); }
.ph-btn--ghost:hover { border-color: var(--ph-blue); color: var(--ph-blue); }
.ph-btn--light { background: #fff; color: var(--ph-blue); }
.ph-btn--full { width: 100%; }
.ph-btn--small { padding: 8px 14px; font-size: 12.5px; }

/* ---------- Cards / pills / stats ---------- */
.ph-card { background: #fff; border: 1px solid var(--ph-border); border-radius: var(--radius); padding: 22px 24px; margin-bottom: 20px; }
.ph-card--accent { border-left: 4px solid var(--ph-amber); }
.ph-card--dark { background: var(--ph-navy); color: #fff; border: none; }
.ph-card__title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.ph-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ph-faint); margin-bottom: 12px; }
.ph-eyebrow--warn { color: var(--ph-amber); }
.ph-pill { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--ph-blue-tint); color: var(--ph-blue); }
.ph-pill--pass { background: var(--ph-green-tint); color: var(--ph-green); }
.ph-pill--fail { background: var(--ph-red-tint); color: var(--ph-red); }
.ph-pill--warn { background: var(--ph-amber-tint); color: var(--ph-amber); }
.ph-pill--draft { background: #F0F3F5; color: var(--ph-faint); }
.ph-pill--type { background: #EFE9F6; color: #7A5EA8; }
.ph-pill-badge { font-size: 13px; color: var(--ph-muted); background: #fff; border: 1px solid var(--ph-border); border-radius: var(--radius-sm); padding: 9px 14px; }
.ph-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.ph-stat-card__label { font-size: 12.5px; color: var(--ph-faint); font-weight: 600; margin-bottom: 8px; }
.ph-stat-card__row { display: flex; align-items: baseline; gap: 10px; }
.ph-stat-card__value { font-size: 26px; font-weight: 700; }
.ph-stat-card__delta.is-positive { color: var(--ph-green); font-size: 12.5px; font-weight: 700; }
.ph-stat-card__delta.is-warning { color: var(--ph-amber); font-size: 12.5px; font-weight: 700; }
.ph-big-stat { font-size: 32px; font-weight: 700; margin: 8px 0; }

/* ---------- Progress ---------- */
.ph-progress { display: flex; align-items: center; gap: 10px; }
.ph-progress__track { flex: 1; height: 7px; background: var(--ph-border-2); border-radius: 999px; overflow: hidden; }
.ph-progress__fill { height: 100%; background: var(--ph-blue); border-radius: 999px; }
.ph-progress__label { font-size: 12px; color: var(--ph-muted); width: 32px; }
.ph-inline-progress { font-weight: 700; color: var(--ph-blue); }
.ph-bar-row { margin-bottom: 14px; }
.ph-bar-row__label { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; }

/* ---------- Layout: app shell ---------- */
.ph-app-shell { display: flex; min-height: 100vh; }
.ph-sidebar { width: 248px; flex: none; background: #fff; border-right: 1px solid var(--ph-border); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.ph-sidebar__brand { padding: 20px 20px 16px; border-bottom: 1px solid var(--ph-border-2); }
.ph-sidebar__brand-text { font-weight: 700; letter-spacing: .02em; }
.ph-sidebar__brand-text span { font-weight: 400; }
.ph-sidebar__workspace-badge { margin-top: 10px; display: inline-flex; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ph-blue); background: var(--ph-blue-tint); border-radius: 6px; padding: 4px 9px; }
.ph-sidebar__nav { padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow: auto; }
.ph-sidebar__link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ph-muted); }
.ph-sidebar__link:hover { background: #F0F5F8; }
.ph-sidebar__link.is-active { background: var(--ph-blue-tint); color: var(--ph-blue); font-weight: 700; }
.ph-sidebar__user { padding: 14px 16px; border-top: 1px solid var(--ph-border-2); display: flex; align-items: center; gap: 11px; }
.ph-sidebar__user-name { font-size: 13.5px; font-weight: 700; }
.ph-sidebar__user-title { font-size: 12px; color: var(--ph-faint); }
.ph-sidebar__signout { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--ph-faint); padding: 6px; border-radius: 6px; display: flex; }
.ph-sidebar__signout:hover { color: var(--ph-red); background: var(--ph-red-tint); }

.ph-app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ph-topbar { background: #fff; border-bottom: 1px solid var(--ph-border); padding: 0 28px; height: 64px; display: flex; align-items: center; gap: 20px; position: sticky; top: 0; z-index: 40; }
.ph-topbar__hamburger { display: none; background: none; border: none; color: var(--ph-navy); padding: 8px; margin: -8px 0; border-radius: 8px; cursor: pointer; flex: none; }
.ph-topbar__hamburger:hover { background: var(--ph-bg-soft); }
.ph-topbar__search { position: relative; flex: 1; max-width: 440px; display: flex; align-items: center; }
.ph-topbar__search svg { position: absolute; left: 13px; }
.ph-topbar__search input { width: 100%; background: var(--ph-bg); border: 1.5px solid transparent; border-radius: 9px; padding: 10px 14px 10px 38px; font: 400 13.5px var(--font); }
.ph-topbar__spacer { flex: 1; }
.ph-topbar__bell { background: none; border: none; cursor: pointer; color: var(--ph-muted); padding: 8px; border-radius: 8px; }
.ph-main { padding: 32px; }

.ph-avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 700; background: var(--ph-blue); }
.ph-avatar--sm { width: 28px; height: 28px; font-size: 11px; }
.ph-avatar--lg { width: 64px; height: 64px; font-size: 22px; }

/* ---------- Page shell ---------- */
.ph-page { width: 100%; }
.ph-page--wide { max-width: 1160px; margin: 0 auto; }
.ph-page--narrow { max-width: 820px; margin: 0 auto; }
.ph-page__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.ph-page__subhead { font-size: 14px; color: var(--ph-faint); }
.ph-page__actions { display: flex; gap: 10px; }
.ph-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ph-breadcrumb { font-size: 13px; color: var(--ph-faint); margin-bottom: 18px; }
.ph-breadcrumb a { font-weight: 600; color: var(--ph-ink); }
.ph-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 20px; align-items: start; }
.ph-grid-lesson { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.ph-stack { display: flex; flex-direction: column; gap: 20px; }
.ph-course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 32px; }
.ph-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; font-size: 13.5px; }
.ph-detail-grid dt { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ph-faint); margin-bottom: 3px; }
.ph-detail-row { display: flex; justify-content: space-between; font-size: 13px; padding: 10px 0; border-top: 1px solid var(--ph-border-2); }

/* ---------- Tables ---------- */
.ph-table-wrap { padding: 0; overflow-x: auto; }
.ph-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ph-table th { text-align: left; color: var(--ph-faint); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; padding: 12px 20px; border-bottom: 1px solid var(--ph-border); }
.ph-table td { padding: 13px 20px; border-bottom: 1px solid var(--ph-border-2); }
.ph-table tr:hover td { background: #F8FAFB; }
.ph-table__empty { text-align: center; color: var(--ph-faint); padding: 32px !important; }
.ph-cell-avatar { display: flex; align-items: center; gap: 10px; }

/* ---------- Rows used across dashboards ---------- */
.ph-learning-row, .ph-doc-row, .ph-announcement-row, .ph-session-row, .ph-timeline-row, .ph-note-card { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-learning-row__title, .ph-doc-row__body, .ph-session-row__title { font-size: 14px; font-weight: 600; }
.ph-learning-row__icon, .ph-doc-row__icon { width: 30px; height: 30px; border-radius: 8px; background: var(--ph-blue-tint); color: var(--ph-blue); display: flex; align-items: center; justify-content: center; flex: none; }
.ph-doc-row__body { flex: 1; }
.ph-session-row__date { text-align: center; flex: none; width: 44px; font-weight: 700; }
.ph-timeline-row { border: none; gap: 14px; align-items: flex-start; }
.ph-timeline-row__dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid var(--ph-border); color: var(--ph-faint); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex: none; }
.ph-timeline-row.is-done .ph-timeline-row__dot { background: var(--ph-green); border-color: var(--ph-green); color: #fff; }
.ph-timeline-row.is-current .ph-timeline-row__dot { background: var(--ph-blue); border-color: var(--ph-blue); color: #fff; }
.ph-note-card { flex-direction: column; align-items: flex-start; background: #F8FAFB; border: 1px solid var(--ph-border-2); border-radius: 9px; padding: 12px 14px; }
.ph-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ph-blue); margin-top: 6px; flex: none; }
.ph-continue-card { display: flex; gap: 16px; }
.ph-continue-card__icon { width: 48px; height: 48px; border-radius: 10px; background: var(--ph-blue-tint); color: var(--ph-blue); display: flex; align-items: center; justify-content: center; flex: none; }
.ph-continue-card__body { flex: 1; }
.ph-continue-card__title { font-weight: 700; margin-bottom: 8px; }

/* ---------- Onboarding progress ---------- */
.ph-onboarding-progress__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.ph-onboarding-progress__steps { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11px; color: var(--ph-faint); flex-wrap: wrap; gap: 6px; }
.ph-onboarding-progress__steps .is-done { color: var(--ph-green); font-weight: 700; }
.ph-onboarding-progress__steps .is-current { color: var(--ph-blue); font-weight: 700; }
.ph-profile-head { display: flex; align-items: center; gap: 20px; }

/* ---------- Chips ---------- */
.ph-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.ph-chip { background: #fff; color: var(--ph-muted); border: 1.5px solid var(--ph-border); border-radius: 999px; padding: 8px 16px; font: 600 12.5px var(--font); }
.ph-chip.is-active { background: var(--ph-blue-tint); color: var(--ph-blue); border-color: var(--ph-blue); }

/* ---------- Forms / modal ---------- */
label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 7px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
	width: 100%; box-sizing: border-box; border: 1.5px solid var(--ph-border); border-radius: var(--radius-sm); padding: 11px 13px; font: 400 14px var(--font); color: var(--ph-ink); margin-bottom: 14px; background: #fff;
}
.ph-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ph-form-error { background: var(--ph-red-tint); color: var(--ph-red); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 13px; margin-bottom: 16px; }
.ph-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 24px; }
.ph-modal[hidden] { display: none; }
.ph-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 43, 61, .45); }
.ph-modal__panel { position: relative; width: 100%; max-width: 460px; }
.ph-modal__actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Kanban ---------- */
.ph-kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; }
.ph-kanban__col { background: #EEF2F5; border-radius: 12px; padding: 12px; }
.ph-kanban__col-head { display: flex; justify-content: space-between; padding: 4px 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ph-muted); }
.ph-kanban__count { background: #fff; color: var(--ph-blue); border-radius: 999px; padding: 3px 9px; }
.ph-kanban__cards { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.ph-kanban-card { background: #fff; border: 1px solid var(--ph-border); border-radius: 9px; padding: 12px 13px; cursor: grab; }
.ph-kanban-card.is-dragging { opacity: .4; }
.ph-kanban-card__head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.ph-kanban-card__name { font-size: 13px; font-weight: 700; }
.ph-kanban__dropzone.is-over { background: var(--ph-blue-tint); border-radius: 8px; }

/* ---------- Week grid (sessions) ---------- */
.ph-week-grid { display: grid; grid-template-columns: repeat(7, minmax(150px, 1fr)); gap: 12px; overflow-x: auto; margin-bottom: 24px; }
.ph-week-grid__col { background: #fff; border: 1px solid var(--ph-border); border-radius: 12px; overflow: hidden; min-height: 180px; display: flex; flex-direction: column; }
.ph-week-grid__col.is-today .ph-week-grid__head { background: var(--ph-blue-tint); }
.ph-week-grid__head { padding: 12px 14px; border-bottom: 1px solid var(--ph-border-2); display: flex; gap: 8px; align-items: baseline; }
.ph-week-grid__body { padding: 10px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.ph-week-session { background: var(--ph-blue-tint); border-left: 3px solid var(--ph-blue); border-radius: 7px; padding: 10px 11px; }
.ph-week-session__time { font-size: 11px; font-weight: 700; color: var(--ph-blue); }

/* ---------- Lesson player ---------- */
.ph-lesson-list__item { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 8px; }
.ph-lesson-list__item:hover, .ph-lesson-list__item.is-current { background: var(--ph-blue-tint); }
.ph-lesson-list__dot { width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 2px solid var(--ph-border); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.ph-lesson-list__dot.is-done { background: var(--ph-green); border-color: var(--ph-green); color: #fff; }
.ph-lesson-list__title { flex: 1; font-size: 13.5px; font-weight: 600; }
.ph-lesson-list__dur { font-size: 12px; color: var(--ph-faint); }
.ph-lesson-content__media img { width: 100%; border-radius: 10px; margin-bottom: 20px; }
.ph-lesson-content__actions { display: flex; gap: 12px; border-top: 1px solid var(--ph-border-2); padding-top: 20px; margin-top: 20px; }
.ph-lesson-plan-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-lesson-plan-row__num { width: 26px; height: 26px; border-radius: 8px; background: #F0F5F8; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; }
.ph-lesson-plan-row__title { flex: 1; font-weight: 600; font-size: 13.5px; }
.ph-add-lesson-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; padding-top: 16px; border-top: 1px solid var(--ph-border-2); margin-top: 8px; }
.ph-add-lesson-form input, .ph-add-lesson-form select { margin-bottom: 0; }
.ph-add-lesson-form input[name=title] { flex: 2; min-width: 160px; }
.ph-add-lesson-form select { flex: 1; min-width: 110px; }
.ph-add-lesson-form input[name=duration_minutes] { width: 90px; }

/* ---------- Quiz ---------- */
.ph-quiz { padding: 32px; }
.ph-quiz__intro { text-align: center; }
.ph-quiz__opt { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1.5px solid var(--ph-border); border-radius: 10px; padding: 14px 16px; cursor: pointer; margin-bottom: 10px; font: inherit; }
.ph-quiz__opt.is-selected { border-color: var(--ph-blue); background: var(--ph-blue-tint); }
.ph-quiz__opt-letter { width: 28px; height: 28px; border-radius: 50%; background: #F0F3F5; display: flex; align-items: center; justify-content: center; font-size: 12.5px; font-weight: 700; flex: none; }
.ph-quiz__result-ring { width: 104px; height: 104px; border-radius: 50%; border: 5px solid var(--ph-green); display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; font-size: 26px; font-weight: 700; }

/* ---------- Pipeline funnel / bench ---------- */
.ph-pipeline-funnel { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 12px; overflow-x: auto; margin: 20px 0; }
.ph-pipeline-funnel__col { background: var(--ph-bg); border: 1px solid var(--ph-border-2); border-radius: 10px; padding: 14px; }
.ph-pipeline-funnel__label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; color: var(--ph-muted); margin-bottom: 10px; }
.ph-pipeline-funnel__count { font-size: 22px; font-weight: 700; }
.ph-pipeline-funnel__bar { height: 5px; background: var(--ph-border); border-radius: 999px; overflow: hidden; margin-top: 10px; }
.ph-pipeline-funnel__bar div { height: 100%; background: var(--ph-blue); }

/* ---------- Dropzone ---------- */
.ph-dropzone { display: block; width: 100%; box-sizing: border-box; background: #fff; border: 2px dashed var(--ph-blue-tint-2); border-radius: 12px; padding: 36px; text-align: center; cursor: pointer; margin-bottom: 24px; }
.ph-dropzone:hover { border-color: var(--ph-blue); background: #F8FBFD; }
.ph-dropzone svg { margin-bottom: 10px; }

/* ---------- Alert band ---------- */
.ph-alert-band { background: var(--ph-amber-tint); border: 1px solid #EAD199; border-radius: 10px; padding: 14px 18px; display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 13.5px; }

/* ============================================================
   Public site
   ============================================================ */
.ph-public-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ph-border); }
.ph-public-header__row { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ph-public-header__wordmark { font-weight: 700; letter-spacing: .02em; }
.ph-public-header__wordmark span { font-weight: 400; }
.ph-public-nav { display: flex; align-items: center; gap: 28px; font-size: 14.5px; }
.ph-public-nav a { color: var(--ph-muted); font-weight: 500; }
.ph-public-nav a:hover { color: var(--ph-blue); }

.ph-hero { background: #fff; border-bottom: 1px solid var(--ph-border); padding: 88px 0 96px; }
.ph-hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 64px; align-items: center; }
.ph-hero h1 { font-size: clamp(38px, 4.4vw, 54px); line-height: 1.1; letter-spacing: -.01em; }
.ph-lede { font-size: 17.5px; line-height: 1.65; color: var(--ph-muted); max-width: 520px; }
.ph-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 24px 0; }
.ph-hero__stats { display: flex; gap: 32px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--ph-border); }
.ph-hero__stat-num { font-size: 24px; font-weight: 700; color: var(--ph-blue); }
.ph-hero__stat-label { font-size: 13px; color: var(--ph-faint); margin-top: 2px; }
.ph-hero__media img { width: 100%; border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(11,42,60,.25); }

.ph-section { padding: 80px 0; }
.ph-section--muted { background: var(--ph-bg); }
.ph-section--dark { background: var(--ph-navy); color: #fff; }
.ph-section__intro { color: var(--ph-muted); max-width: 560px; margin-bottom: 40px; }

.ph-pathway { display: flex; flex-wrap: wrap; }
.ph-pathway__item { flex: 1 1 180px; min-width: 170px; padding-right: 12px; }
.ph-pathway__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--ph-blue); margin-bottom: 16px; }
.ph-pathway__level { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--ph-faint); }

.ph-hotel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.ph-hotel-card { padding: 0; overflow: hidden; }
.ph-hotel-card__media img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }
.ph-hotel-card__body { padding: 18px 20px 20px; }
.ph-hotel-card__name { font-size: 15.5px; font-weight: 700; }
.ph-hotel-card__tagline { font-size: 13px; color: var(--ph-faint); margin-top: 4px; }

.ph-cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding: 64px 0; }

.ph-journey-step { display: grid; grid-template-columns: 56px 1fr; gap: 20px; }
.ph-journey-step__dot { width: 44px; height: 44px; border-radius: 50%; background: var(--ph-blue-tint); color: var(--ph-blue); display: flex; align-items: center; justify-content: center; font-weight: 700; }
.ph-journey-step__line { width: 2px; flex: 1; background: var(--ph-border); margin: 6px auto; min-height: 20px; }
.ph-journey-step__card { margin-bottom: 20px; }
.ph-checklist-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13.5px; background: var(--ph-bg); border-radius: 8px; padding: 10px 13px; margin-bottom: 8px; }

.ph-login { min-height: 100vh; display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.ph-login__panel { background: var(--ph-navy); color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: 56px; }
.ph-login__wordmark { color: #fff; font-weight: 700; }
.ph-login__wordmark em { color: #7FBEDD; font-style: normal; font-weight: 400; }
.ph-login__contact { font-size: 12.5px; color: #6E8CA0; }
.ph-login__form-wrap { display: flex; align-items: center; justify-content: center; padding: 48px 32px; background: var(--ph-bg); }
.ph-login__form { width: 100%; max-width: 400px; }

.ph-public-footer { background: var(--ph-navy); color: #A9C2D1; }
.ph-public-footer__row { padding: 56px 0 40px; display: flex; flex-wrap: wrap; gap: 48px; justify-content: space-between; }
.ph-public-footer__wordmark { color: #fff; font-weight: 700; margin-bottom: 12px; }
.ph-public-footer__cols { display: flex; gap: 56px; flex-wrap: wrap; }
.ph-public-footer__heading { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 14px; }
.ph-public-footer__bottom { border-top: 1px solid var(--ph-navy-2); padding: 18px 0; font-size: 12.5px; color: #6E8CA0; }

@media (max-width: 900px) {
	.ph-app-shell { flex-direction: column; }
	.ph-grid-lesson { grid-template-columns: 1fr; }

	/* Sidebar becomes an off-canvas drawer instead of dumping the
	   full nav above the page content — toggled via the hamburger
	   button in the topbar (assets/js/app.js: initMobileNav). */
	.ph-sidebar {
		position: fixed; top: 0; left: 0; z-index: 200;
		width: min(280px, 82vw); height: 100vh;
		transform: translateX(-100%);
		transition: transform .25s ease;
		box-shadow: var(--shadow);
	}
	body.ph-nav-open .ph-sidebar { transform: translateX(0); }

	.ph-topbar__hamburger { display: inline-flex; }

	.ph-nav-backdrop {
		position: fixed; inset: 0; z-index: 190;
		background: rgba(15, 43, 61, .45);
		opacity: 0; pointer-events: none;
		transition: opacity .2s ease;
	}
	body.ph-nav-open .ph-nav-backdrop { opacity: 1; pointer-events: auto; }
	body.ph-nav-open { overflow: hidden; } /* stop the page scrolling behind the open drawer */
}


/* ============================================================
   Design-fidelity additions (v1.1)
   ============================================================ */

/* Gradient progress (onboarding card + quiz header) — exact prototype values */
.ph-progress--lg .ph-progress__track { height: 10px; }
.ph-progress__fill--gradient { background: linear-gradient(90deg, #0070B0, #1E9AD6); }

/* Topbar: notification dot + live search results dropdown */
.ph-topbar__bell { position: relative; }
.ph-topbar__bell-dot { position: absolute; top: 6px; right: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--ph-red); border: 2px solid #fff; }
.ph-topbar__search { position: relative; }
.ph-topbar__search input:focus { border-color: var(--ph-blue); background: #fff; outline: none; }
.ph-topbar__results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--ph-border); border-radius: 10px; box-shadow: 0 16px 40px -12px rgba(11, 42, 60, .25); padding: 6px; z-index: 60; }
.ph-topbar__result { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 7px; }
.ph-topbar__result:hover { background: #F0F5F8; }
.ph-topbar__result-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-topbar__result-type { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--ph-faint); flex: none; }
.ph-topbar__no-results { padding: 14px 12px; font-size: 13.5px; color: var(--ph-faint); }

/* Admin-only workspace switcher — the production version of the prototype's role tabs */
.ph-role-tabs { display: flex; align-items: center; gap: 4px; background: var(--ph-bg); border-radius: 9px; padding: 4px; }
.ph-role-tabs__tab { border-radius: 7px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: var(--ph-muted); }
.ph-role-tabs__tab:hover { color: var(--ph-blue); }
.ph-role-tabs__tab.is-active { background: #fff; color: var(--ph-blue); box-shadow: 0 2px 6px -2px rgba(11, 42, 60, .25); }

/* Hero: eyebrow leading dash + large CTA + text link button (exact prototype) */
.ph-hero .ph-eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--ph-blue); letter-spacing: .14em; font-size: 12.5px; margin-bottom: 20px; }
.ph-hero .ph-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--ph-blue); display: inline-block; }
.ph-btn--lg { padding: 15px 26px; font-size: 15.5px; }
.ph-btn--text { background: transparent; color: var(--ph-blue); padding: 15px 10px; }
.ph-btn--text:hover { color: var(--ph-blue-dark); }
.ph-hero__grid { animation: fadeUp .5s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Login card: elevation + logo slot (prototype card has a shadow + logo) */
.ph-login__form--elevated { border-radius: 14px; padding: 36px; box-shadow: 0 12px 40px -20px rgba(11, 42, 60, .2); }
.ph-login__form-logo { margin-bottom: 22px; }
.ph-login__form-logo img { height: 40px; width: auto; display: block; }

/* Module editor: icon buttons + inline question rows */
.ph-icon-btn { background: none; border: none; cursor: pointer; color: var(--ph-faint); padding: 6px; border-radius: 6px; display: inline-flex; margin-left: auto; }
.ph-icon-btn:hover { color: var(--ph-red); background: var(--ph-red-tint); }
.ph-question-row { padding: 13px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-question-row__head { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
.ph-question-row__text { flex: 1; font-size: 13.5px; }
.ph-question-row__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.js-add-question-form { border-top: 1px solid var(--ph-border-2); padding-top: 18px; margin-top: 12px; }
.js-add-note-form { border-top: 1px solid var(--ph-border-2); padding-top: 14px; margin-top: 10px; }
.js-add-note-form textarea { margin-bottom: 10px; }

/* Dropzone as a real button (opens the upload modal) */
button.ph-dropzone { font: inherit; color: inherit; width: 100%; }

/* Global focus + placeholder (from prototype base styles) */
input::placeholder, textarea::placeholder { color: var(--ph-faint); }
input:focus, select:focus, textarea:focus { border-color: var(--ph-blue); outline: none; }
.ph-btn:focus-visible, a:focus-visible { outline: 2px solid var(--ph-blue); outline-offset: 2px; }


/* ===== Academy Setup (v1.3) =========================================== */
.ph-setup-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--ph-border); }
.ph-setup-row:last-of-type { border-bottom: 0; }
.ph-setup-row__index { width: 24px; height: 24px; border-radius: 50%; background: var(--ph-bg-soft); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--ph-navy); flex: none; }
.ph-setup-row input[type="text"], .ph-setup-row select { flex: 1; min-width: 0; }
.ph-setup-row .ph-input--short, .ph-input--short { flex: 0 1 160px; }
.ph-setup-row__tools { display: inline-flex; gap: 4px; flex: none; }
.ph-setup-add { display: flex; gap: 8px; margin-top: 14px; }
.ph-setup-add input { flex: 1; }
.ph-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.ph-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 1px solid var(--ph-border); border-radius: 999px; font-size: 13px; background: #fff; }
.ph-chip em { font-style: normal; color: var(--ph-muted); font-size: 12px; }
.ph-chip button { border: 0; background: none; cursor: pointer; color: var(--ph-muted); padding: 0 2px; font-size: 12px; }
.ph-chip button:hover { color: var(--ph-navy); }
.ph-hb-editor { border: 1px solid var(--ph-border); border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; }
.ph-hb-editor summary { cursor: pointer; font-weight: 600; color: var(--ph-navy); }
.ph-hb-editor form { display: grid; gap: 10px; margin-top: 12px; }
.ph-hb-editor__tools { display: flex; gap: 8px; justify-content: flex-end; }
.ph-setup-settings { display: grid; gap: 12px; }
.ph-upload-label { cursor: pointer; }
.ph-grid--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 900px) { .ph-grid--2 { grid-template-columns: 1fr; } }


/* ===== Bar charts + dashboard feel (v1.5) ============================= */
.ph-chart-card { overflow: hidden; }
.ph-bars { display: flex; align-items: flex-end; gap: 14px; height: 180px; padding-top: 20px; }
.ph-bars__col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.ph-bars__bar { width: 100%; max-width: 46px; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, #1E9AD6 0%, #0070B0 100%); transition: height .5s cubic-bezier(.4,0,.2,1); }
.ph-bars__value { font-size: 12px; font-weight: 700; color: var(--ph-navy); margin-bottom: 4px; }
.ph-bars__label { font-size: 11px; color: var(--ph-muted); margin-top: 8px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ph-progress-row { display: flex; align-items: center; gap: 12px; padding: 7px 0; }
.ph-progress-row__label { flex: 0 0 38%; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-progress-row__value { flex: none; font-size: 12.5px; font-weight: 700; color: var(--ph-navy); width: 40px; text-align: right; }
.ph-progress--slim { height: 8px; flex: 1; }
.ph-lesson-form__row { display: flex; gap: 8px; align-items: center; }
.ph-lesson-form__row input[type="text"], .ph-lesson-form__row input[type="url"] { flex: 1; }
.js-add-lesson-form { display: grid; gap: 8px; }
.ph-lesson-content__video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.ph-chip--media { padding-left: 6px; }
.ph-chip__thumb { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; }
.ph-chip__cam { cursor: pointer; font-size: 13px; }

/* ===== Lesson wizard + quiz modal (v1.7) =============================== */
.ph-modal--wizard .ph-modal__panel { max-width: 520px; }
.ph-type-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 20px; }
.ph-type-card { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 10px; border: 1.5px solid var(--ph-border); border-radius: 12px; background: #fff; cursor: pointer; transition: border-color .15s, transform .1s; text-align: center; }
.ph-type-card:hover { border-color: var(--ph-blue); transform: translateY(-1px); }
.ph-type-card__icon { font-size: 22px; line-height: 1; }
.ph-type-card__label { font-weight: 700; font-size: 13.5px; color: var(--ph-navy); }
.ph-type-card__hint { font-size: 11px; color: var(--ph-muted); }
.ph-lesson-wizard__back { border: 0; background: none; color: var(--ph-blue); font-size: 12.5px; font-weight: 600; cursor: pointer; padding: 0 0 10px; text-align: left; }
.ph-lesson-wizard__step form, form.ph-lesson-wizard__step { display: grid; gap: 12px; }
[class*="ph-lesson-field--"] { display: none; }

/* ===== WYSIWYG (Text lessons) + field polish (v1.8) ==================== */
.ph-form-field { margin-bottom: 14px; }
.ph-form-field__label { display: block; font-size: 13px; font-weight: 600; margin: 0 0 7px; }
.ph-wysiwyg { border: 1.5px solid var(--ph-border); border-radius: var(--radius-sm); overflow: hidden; background: #fff; }
.ph-wysiwyg__toolbar { display: flex; align-items: center; gap: 2px; padding: 6px 8px; border-bottom: 1px solid var(--ph-border); background: var(--ph-bg-soft); flex-wrap: wrap; }
.ph-wysiwyg__btn { border: 0; background: none; border-radius: 6px; padding: 5px 9px; font: 400 13px var(--font); color: var(--ph-navy); cursor: pointer; line-height: 1; }
.ph-wysiwyg__btn:hover { background: #fff; box-shadow: 0 0 0 1px var(--ph-border); }
.ph-wysiwyg__sep { width: 1px; height: 18px; background: var(--ph-border); margin: 0 4px; }
.ph-wysiwyg__editor { min-height: 140px; max-height: 320px; overflow-y: auto; padding: 12px 13px; font: 400 14px var(--font); color: var(--ph-ink); line-height: 1.55; }
.ph-wysiwyg__editor:focus { outline: none; }
.ph-wysiwyg__editor:empty::before { content: attr(data-placeholder); color: var(--ph-muted); }
.ph-wysiwyg__editor ul, .ph-wysiwyg__editor ol { margin: 0 0 10px 20px; padding: 0; }
.ph-wysiwyg__editor p { margin: 0 0 10px; }
.ph-lesson-field--video, .ph-lesson-field--text, .ph-lesson-field--slide { margin-bottom: 14px; }

/* ===== Reorderable content list + inline quiz management (v1.9) ======== */
.ph-lesson-plan-row { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--ph-border); flex-wrap: wrap; }
.ph-lesson-plan-row__tools { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; }
.ph-icon-btn:disabled { opacity: .3; cursor: default; }
.ph-quiz-questions { margin: 0 0 10px 32px; padding: 10px 14px; border: 1px dashed var(--ph-border); border-radius: 10px; background: var(--ph-bg-soft); }
.ph-quiz-questions summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ph-navy); }
.ph-quiz-questions .js-add-question-form,
.ph-quiz-questions .ph-question-row { margin-top: 12px; }
.ph-rename-inline { display: flex; gap: 8px; margin: 12px 0; }
.ph-rename-inline input { flex: 1; margin-bottom: 0; }

/* ===== Quiz question manager (v2.0) ==================================== */
.ph-question-row__head { display: flex; align-items: flex-start; gap: 8px; }
.ph-question-row__tools { display: inline-flex; gap: 2px; margin-left: auto; flex: none; }
.ph-bulk-import { margin-top: 16px; border-top: 1px dashed var(--ph-border); padding-top: 12px; }
.ph-bulk-import summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ph-blue); }
.ph-bulk-import__example { background: var(--ph-bg-soft); border-radius: 8px; padding: 10px 12px; font-size: 12px; color: var(--ph-muted); margin: 8px 0; white-space: pre-wrap; }
.js-bulk-import-form textarea { width: 100%; box-sizing: border-box; font-family: monospace; font-size: 12.5px; }
.js-bulk-import-result { font-size: 12.5px; color: var(--ph-muted); margin-top: 6px; }

/* ===== Trainer dashboard redesign (v2.1) ================================ */
.ph-trainer-hero { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.ph-trainer-hero h1 { margin: 2px 0 4px; }
.ph-stat-card { background: #fff; border: 1px solid var(--ph-border); border-radius: var(--radius); padding: 14px 16px; }
.ph-stat-card__label { font-size: 12px; color: var(--ph-faint); margin-bottom: 6px; }
.ph-stat-card__value { font-size: 22px; font-weight: 700; color: var(--ph-navy); }
.ph-stat-card--warn { background: var(--ph-amber-tint); border-color: #F0DCB8; }
.ph-stat-card--warn .ph-stat-card__label { color: var(--ph-amber); }
.ph-stat-card--warn .ph-stat-card__value { color: #8A5613; }

.ph-module-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-module-row:last-child { border-bottom: 0; }
.ph-module-row__body { flex: 1; min-width: 0; }
.ph-module-row__title { font-size: 13.5px; font-weight: 600; color: var(--ph-ink); }
.ph-module-row__bar { width: 60px; height: 6px; background: var(--ph-border-2); border-radius: 99px; overflow: hidden; flex: none; }
.ph-module-row__bar span { display: block; height: 100%; background: var(--ph-blue); }

.ph-session-row { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-session-row > div:nth-child(2) { flex: 1; min-width: 0; }
.ph-session-row:last-child { border-bottom: 0; }
.ph-session-row__date { text-align: center; flex: none; width: 38px; }
.ph-session-row__dow { display: block; font-size: 11px; color: var(--ph-faint); text-transform: uppercase; }
.ph-session-row__day { display: block; font-size: 15px; font-weight: 700; color: var(--ph-navy); }
.ph-session-row__title { font-size: 13px; font-weight: 600; color: var(--ph-ink); }

.ph-attention-card { margin-top: 20px; }
.ph-attention-card .ph-card__title { display: flex; align-items: center; gap: 8px; color: var(--ph-red); }
.ph-attention-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: var(--ph-red-tint); border-radius: 9px; margin-bottom: 8px; }
.ph-attention-row:last-child { margin-bottom: 0; }
.ph-attention-row__body { flex: 1; min-width: 0; }
.ph-attention-row__name { font-size: 13px; font-weight: 600; color: var(--ph-ink); }

/* ===== Add-content flow polish (v2.1) =================================== */
.ph-modal__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--ph-blue-tint); color: var(--ph-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.ph-question-row__index { width: 22px; height: 22px; border-radius: 50%; background: var(--ph-bg-soft); color: var(--ph-navy); display: inline-flex; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; flex: none; }
.ph-type-card { position: relative; }
.ph-type-card__icon { color: var(--ph-blue); }
.ph-type-card:hover .ph-type-card__icon { color: var(--ph-blue-dark); }
.ph-icon-btn svg { display: block; }

/* ===== Quiz timer (v2.2) ================================================= */
.ph-quiz__head-row { display: flex; align-items: center; gap: 14px; }
.ph-quiz__timer { flex: none; font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; color: var(--ph-navy); background: var(--ph-bg-soft); border: 1px solid var(--ph-border); border-radius: 999px; padding: 6px 14px; }
.ph-quiz__timer.is-urgent { color: var(--ph-red); background: var(--ph-red-tint); border-color: #F0C4BE; }

/* ===== Trainer session roll-call (v2.3) ================================= */
.ph-roll-call-hint { margin: -4px 0 16px; font-size: 12.5px; }
.ph-roll-call-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-roll-call-row:last-of-type { border-bottom: 0; }
.ph-roll-call-row__name { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--ph-ink); min-width: 0; }
.ph-status-toggle { display: inline-flex; border: 1px solid var(--ph-border); border-radius: 8px; overflow: hidden; flex: none; }
.ph-status-toggle__btn { font-family: inherit; font-size: 12px; font-weight: 600; padding: 7px 12px; border: none; border-right: 1px solid var(--ph-border); background: #fff; color: var(--ph-faint); cursor: pointer; }
.ph-status-toggle__btn:last-child { border-right: 0; }
.ph-status-toggle__btn:hover { background: var(--ph-bg-soft); }
.ph-status-toggle__btn--present.is-active { background: var(--ph-green-tint); color: var(--ph-green); }
.ph-status-toggle__btn--late.is-active { background: var(--ph-amber-tint); color: var(--ph-amber); }
.ph-status-toggle__btn--excused.is-active { background: #EFF0FB; color: #5B5FC7; }
.ph-status-toggle__btn--absent.is-active { background: var(--ph-red-tint); color: var(--ph-red); }

/* ===== Employee attendance status banner (v2.3) ========================= */
.ph-attendance-today { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--ph-border); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 20px; }
.ph-attendance-today--locked { background: var(--ph-red-tint); border-color: #F0C4BE; }
.ph-attendance-today__icon { width: 40px; height: 40px; border-radius: 10px; background: var(--ph-bg-soft); color: var(--ph-faint); display: flex; align-items: center; justify-content: center; flex: none; }
.ph-attendance-today__icon--active { background: var(--ph-blue-tint); color: var(--ph-blue); }
.ph-attendance-today__icon--done { background: var(--ph-green-tint); color: var(--ph-green); }
.ph-attendance-today--locked .ph-attendance-today__icon { background: #F0C4BE; color: var(--ph-red); }
.ph-attendance-today__body { flex: 1; min-width: 0; }
.ph-attendance-today__title { font-size: 15px; font-weight: 700; color: var(--ph-navy); }

/* ===== Notification bell dropdown (v2.4) ================================ */
.ph-notif { position: relative; }
.ph-notif__panel { position: absolute; top: calc(100% + 10px); right: 0; width: 340px; max-height: 420px; background: #fff; border: 1px solid var(--ph-border); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 50; overflow: hidden; display: flex; flex-direction: column; }
.ph-notif__panel[hidden] { display: none; }
.ph-notif__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--ph-border-2); font-size: 13.5px; font-weight: 700; color: var(--ph-navy); }
.ph-notif__mark-all { font-family: inherit; font-size: 12px; font-weight: 600; color: var(--ph-blue); background: none; border: none; cursor: pointer; padding: 0; }
.ph-notif__list { overflow-y: auto; }
.ph-notif__item { display: flex; gap: 10px; padding: 12px 16px; text-decoration: none; border-bottom: 1px solid var(--ph-border-2); }
.ph-notif__item:last-child { border-bottom: 0; }
.ph-notif__item:hover { background: var(--ph-bg-soft); }
.ph-notif__item-dot { width: 7px; height: 7px; border-radius: 50%; background: transparent; margin-top: 6px; flex: none; }
.ph-notif__item.is-unread .ph-notif__item-dot { background: var(--ph-blue); }
.ph-notif__item-msg { font-size: 13px; color: var(--ph-ink); line-height: 1.4; }
.ph-notif__item.is-unread .ph-notif__item-msg { font-weight: 600; }
.ph-notif__item-time { font-size: 11.5px; color: var(--ph-faint); margin-top: 2px; }

/* ===== Announcements: priority dot + clickable rows (v2.4) ============== */
.ph-dot--high { background: var(--ph-red); }
.js-view-announcement { cursor: pointer; border-radius: 8px; transition: background .12s; }
.js-view-announcement:hover { background: var(--ph-bg-soft); }

/* ===== Offer letter acceptance gate (v2.4) =============================== */
.ph-offer-gate { background: linear-gradient(135deg, var(--ph-navy), var(--ph-navy-2)); color: #fff; border-radius: var(--radius); padding: 28px 32px; margin-bottom: 20px; text-align: center; }
.ph-offer-gate__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; }
.ph-offer-gate h2 { color: #fff; margin: 0 0 8px; }
.ph-offer-gate .ph-muted { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 18px; }
.ph-offer-gate .ph-btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; margin-right: 10px; }

/* ===== Checklist rows (v2.4) ============================================= */
.ph-checkbox-row { display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500; color: var(--ph-ink); padding: 8px 0; cursor: pointer; }
.ph-checkbox-row input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--ph-blue); }

/* ===== Trainee notes thread (v2.4) ======================================= */
.ph-trainee-notes__list { max-height: 260px; overflow-y: auto; margin: 12px 0 16px; }
.ph-trainee-note { padding: 10px 0; border-bottom: 1px solid var(--ph-border-2); font-size: 13px; }
.ph-trainee-note:last-child { border-bottom: 0; }
.ph-trainee-note__head { display: flex; justify-content: space-between; margin-bottom: 3px; font-size: 12.5px; }

/* ===== Confirmation Appraisal (v2.5) ===================================== */
.ph-appraisal-stage { padding: 10px 0; border-bottom: 1px solid var(--ph-border-2); font-size: 13px; }
.ph-appraisal-stage:last-child { border-bottom: 0; }
.ph-appraisal-stage strong { display: block; margin-bottom: 3px; font-size: 12.5px; color: var(--ph-navy); }
.ph-appraisal-comment-form { padding: 12px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-appraisal-comment-form:last-of-type { border-bottom: 0; }
.ph-appraisal-comment-form strong { display: block; margin-bottom: 6px; font-size: 13px; color: var(--ph-ink); }
.ph-appraisal-comment-form textarea { width: 100%; box-sizing: border-box; margin-bottom: 8px; }
.ph-appraisal-decision-block { padding: 14px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-appraisal-decision-block:last-child { border-bottom: 0; }
.ph-appraisal-decision-block > strong { display: block; margin-bottom: 6px; font-size: 14px; color: var(--ph-navy); }
.ph-appraisal-decision-block textarea { width: 100%; box-sizing: border-box; margin: 10px 0 8px; }
.ph-appraisal-decision-block__actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ===== Notification deep-link highlight (v2.5.1) ========================= */
.ph-highlight-pulse { animation: ph-pulse 1s ease-in-out 2; border-radius: 10px; }
@keyframes ph-pulse {
	0%, 100% { background-color: transparent; }
	50% { background-color: var(--ph-blue-tint); }
}

/* ===== Attendance geofencing (v2.6) ====================================== */
.ph-geofence-row { padding: 14px 0; border-bottom: 1px solid var(--ph-border-2); }
.ph-geofence-row:last-child { border-bottom: 0; }
.ph-geofence-row__head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ph-geofence-row__head strong { font-size: 14px; color: var(--ph-navy); }
.ph-geofence-row__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* ============================================================
   Mobile responsive — tablet (v2.7)
   ============================================================ */
@media (max-width: 900px) {
	.ph-main { padding: 20px 16px; }
	.ph-grid-2 { grid-template-columns: 1fr; }
	.ph-form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   Mobile responsive — phone (v2.7)
   ============================================================ */
@media (max-width: 640px) {
	.ph-stat-grid { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
	.ph-page__head { flex-direction: column; align-items: flex-start; }
	.ph-page__actions { width: 100%; }
	.ph-page__actions .ph-btn { flex: 1; justify-content: center; }
	.ph-modal { padding: 12px; }
	.ph-modal__panel { max-width: none; }

	/* Rows built for a wide card (name/status/pill/button all in one
	   line) stack instead of squeezing — the alternative is text
	   truncating or buttons shrinking to unreadable widths. */
	.ph-profile-head,
	.ph-module-row,
	.ph-roll-call-row,
	.ph-session-row,
	.ph-attendance-today,
	.ph-attention-row,
	.ph-notif__item {
		flex-wrap: wrap;
	}
	.ph-roll-call-row .ph-status-toggle { width: 100%; justify-content: stretch; }
	.ph-status-toggle { flex-wrap: wrap; }
	.ph-status-toggle__btn { flex: 1; text-align: center; }
	.ph-module-row__bar { display: none; } /* the % is already shown in text; the bar just adds clutter at this width */
	.ph-offer-gate { padding: 22px 18px; }
	.ph-trainer-hero .ph-page__actions .ph-btn { flex: none; width: 100%; }

	/* Kanban and tables already scroll horizontally (overflow-x:
	   auto is set elsewhere) — just tighten the padding so more of
	   the content is visible at once on a narrow screen. */
	.ph-kanban__col { padding: 8px; }
	.ph-table-wrap table { font-size: 12.5px; }
	.ph-notif__panel { width: calc(100vw - 24px); right: -12px; }
	.ph-question-row__head { flex-wrap: wrap; }
}
