/*
 * SOLNRUS public candidate experience (CANDX-1).
 *
 * ONE stylesheet for the careers list, the job posting and the application, so
 * the three read as one product: the same header, type scale, spacing, fields
 * and buttons on every page. It is the only stylesheet those pages load - no
 * Frappe website bundle, no desk theme - which is why the palette is declared
 * here rather than borrowed from the theme engine.
 *
 * Public pages render in the approved LIGHT appearance for everybody (see
 * LEARN-HIRE-6): there is deliberately no prefers-color-scheme block. `color-
 * scheme: light` keeps native controls light on a phone in dark mode too.
 *
 * Scale: page title 26/32px, section 18px, body 15.5px, labels 14.5px, help
 * 13.5px. Inputs are 16px so iOS Safari never zooms a focused field.
 */
:root {
	color-scheme: light;
	--cx-navy: #0b1e2d;
	--cx-navy-2: #12314a;
	--cx-navy-3: #1d4566;
	--cx-gold: #b98a2f;
	--cx-gold-soft: #f7efdf;
	--cx-gold-line: #e7d3a8;
	--cx-ink: #15202b;
	--cx-body: #394653;
	--cx-muted: #5c6874;
	--cx-line: #e2e6ea;
	--cx-line-2: #cdd4da;
	--cx-bg: #f4f6f8;
	--cx-surface: #ffffff;
	--cx-tint: #f8fafb;
	--cx-ok: #0e7045;
	--cx-ok-bg: #e7f4ec;
	--cx-bad: #b3261e;
	--cx-bad-bg: #fcecea;
	--cx-warn: #7c5200;
	--cx-warn-bg: #fdf3dc;
	--cx-info-bg: #eaf1f8;
	--cx-focus: #1d5fa8;
	--cx-radius: 12px;
	--cx-radius-sm: 10px;
	--cx-shadow: 0 1px 2px rgba(11, 30, 45, .05), 0 1px 1px rgba(11, 30, 45, .03);
	--cx-shadow-lg: 0 10px 30px rgba(11, 30, 45, .10);
	--cx-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
	--cx-max: 1120px;
	--cx-read: 720px;
	--cx-gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body.cx {
	margin: 0;
	background: var(--cx-bg);
	color: var(--cx-ink);
	font: 400 15.5px/1.55 var(--cx-font);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
}
.cx [hidden] { display: none !important; }
.cx a { color: var(--cx-navy-3); text-underline-offset: 2px; }
.cx a:hover { color: var(--cx-navy); }
.cx img { max-width: 100%; }
.cx h1, .cx h2, .cx h3, .cx p { margin: 0; }
.cx :focus { outline: none; }
.cx :focus-visible { outline: 3px solid var(--cx-focus); outline-offset: 2px; border-radius: 6px; }
/* Headings and regions take focus only so a screen reader starts reading there
   after a step changes; they are not controls and draw no ring. */
.cx [tabindex="-1"]:focus, .cx [tabindex="-1"]:focus-visible { outline: none; }
.cx-sr {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.cx-skip {
	position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--cx-navy);
	color: #fff !important; padding: 10px 14px; border-radius: 8px; font-weight: 600;
	text-decoration: none;
}
.cx-skip:focus { top: 10px; }
.cx-wrap { width: 100%; max-width: var(--cx-max); margin: 0 auto; padding: 0 var(--cx-gutter); }
.cx-main { flex: 1 0 auto; width: 100%; }

/* ------------------------------------------------------------- header */
.cx-top {
	background: var(--cx-surface);
	border-top: 3px solid var(--cx-gold);
	border-bottom: 1px solid var(--cx-line);
	position: relative;
	z-index: 10;
}
.cx-top .cx-wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; }
.cx-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--cx-navy) !important; min-height: 44px; }
.cx-brand img { width: 30px; height: 30px; }
.cx-brand b { font-size: 15px; font-weight: 750; letter-spacing: .12em; }
.cx-brand span { font-size: 13px; color: var(--cx-muted); font-weight: 500; padding-left: 10px; border-left: 1px solid var(--cx-line-2); line-height: 1.2; }
.cx-top nav { display: flex; align-items: center; gap: 4px; }
.cx-top nav a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px;
	font-size: 14px; font-weight: 550; color: var(--cx-body); text-decoration: none; white-space: nowrap;
}
/* A phone with the seal, the wordmark and two links: the "Careers" label is the one that goes. */
@media (max-width: 440px) {
	.cx-brand span { display: none; }
	.cx-brand { gap: 8px; }
	.cx-top nav { gap: 0; }
	.cx-top nav a { padding: 0 8px; }
}
.cx-top nav a:hover { color: var(--cx-navy); background: var(--cx-tint); }

/* ------------------------------------------------------------- footer */
.cx-foot { border-top: 1px solid var(--cx-line); background: var(--cx-surface); margin-top: 40px; }
.cx-foot .cx-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; padding-top: 18px; padding-bottom: 22px; font-size: 13.5px; color: var(--cx-muted); }
.cx-foot a { color: var(--cx-navy-3); }

/* ------------------------------------------------------------ buttons */
.cx-btn {
	-webkit-appearance: none; appearance: none;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 20px; border-radius: var(--cx-radius-sm);
	font: 600 15.5px/1.2 var(--cx-font); text-decoration: none !important; cursor: pointer;
	border: 1px solid transparent; transition: background-color .15s, border-color .15s, box-shadow .15s;
	white-space: nowrap; user-select: none; -webkit-tap-highlight-color: transparent;
}
.cx-btn-primary { background: var(--cx-navy); color: #fff !important; border-color: var(--cx-navy); }
.cx-btn-primary:hover { background: var(--cx-navy-2); border-color: var(--cx-navy-2); }
.cx-btn-secondary { background: var(--cx-surface); color: var(--cx-navy) !important; border-color: var(--cx-line-2); }
.cx-btn-secondary:hover { border-color: var(--cx-navy-3); background: var(--cx-tint); }
.cx-btn-quiet { background: transparent; color: var(--cx-navy-3) !important; border-color: transparent; padding: 0 12px; }
.cx-btn-quiet:hover { background: var(--cx-tint); }
.cx-btn-block { width: 100%; }
.cx-btn[disabled], .cx-btn[aria-disabled="true"] { opacity: .6; cursor: not-allowed; }
.cx-btn .cx-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: cx-spin .8s linear infinite; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
.cx-link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--cx-navy-3); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; min-height: 32px; }

/* -------------------------------------------------------------- pills */
.cx-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-pill {
	display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 3px 10px;
	border-radius: 999px; background: var(--cx-tint); border: 1px solid var(--cx-line);
	font-size: 13px; font-weight: 550; color: var(--cx-body); line-height: 1.3;
}
.cx-pill-gold { background: var(--cx-gold-soft); border-color: var(--cx-gold-line); color: #6b4a0c; }
.cx-pill-ok { background: var(--cx-ok-bg); border-color: #b9dcc7; color: var(--cx-ok); }
.cx-pill svg { width: 14px; height: 14px; flex: 0 0 auto; }

/* --------------------------------------------------------------- card */
.cx-card { background: var(--cx-surface); border: 1px solid var(--cx-line); border-radius: var(--cx-radius); box-shadow: var(--cx-shadow); }
.cx-card-pad { padding: 20px 16px; }
.cx-section + .cx-section { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--cx-line); }
.cx-h2 { font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.005em; color: var(--cx-ink); }
.cx-h3 { font-size: 15.5px; line-height: 1.35; font-weight: 650; color: var(--cx-ink); }
.cx-lede { font-size: 15.5px; color: var(--cx-body); }
.cx-muted { color: var(--cx-muted); }
.cx-small { font-size: 13.5px; }
.cx-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--cx-muted); }

/* ------------------------------------------------------------- prose */
.cx-prose { color: var(--cx-body); font-size: 15.5px; line-height: 1.6; overflow-wrap: anywhere; }
.cx-prose > * + * { margin-top: 10px; }
.cx-prose p { margin: 0; }
.cx-prose ul, .cx-prose ol { margin: 8px 0 0; padding-left: 20px; }
.cx-prose li + li { margin-top: 5px; }
.cx-prose strong, .cx-prose b { color: var(--cx-ink); font-weight: 650; }
.cx-prose h1, .cx-prose h2, .cx-prose h3, .cx-prose h4 { font-size: 15.5px; font-weight: 650; color: var(--cx-ink); margin: 14px 0 0; }
.cx-prose .ql-editor { padding: 0 !important; }
.cx-prose table { display: block; overflow-x: auto; max-width: 100%; }
.cx-list { margin: 0; padding: 0; list-style: none; }
.cx-list li { position: relative; padding-left: 20px; color: var(--cx-body); }
.cx-list li + li { margin-top: 7px; }
.cx-list li::before { content: ""; position: absolute; left: 3px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--cx-gold); }

/* ============================================================ JOB PAGE */
.cx-job-head { background: var(--cx-surface); border-bottom: 1px solid var(--cx-line); }
.cx-job-head .cx-wrap { padding-top: 16px; padding-bottom: 20px; }
.cx-crumb { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: 14px; font-weight: 550; text-decoration: none; color: var(--cx-muted) !important; }
.cx-crumb:hover { color: var(--cx-navy) !important; }
.cx-job-title { font-size: 26px; line-height: 1.2; font-weight: 750; letter-spacing: -.015em; color: var(--cx-ink); margin-top: 6px; overflow-wrap: anywhere; }
.cx-job-sub { margin-top: 6px; font-size: 15px; color: var(--cx-body); display: flex; flex-wrap: wrap; gap: 4px 14px; }
.cx-job-sub span { display: inline-flex; align-items: center; gap: 6px; }
.cx-job-sub svg { width: 16px; height: 16px; color: var(--cx-muted); flex: 0 0 auto; }
.cx-job-head .cx-pills { margin-top: 12px; }
.cx-job-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.cx-job-cta .cx-btn { min-width: 180px; }
.cx-job-cta small { font-size: 13.5px; color: var(--cx-muted); }
.cx-job-body { padding-top: 20px; }
.cx-job-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cx-glance { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--cx-line); border: 1px solid var(--cx-line); border-radius: var(--cx-radius); overflow: hidden; }
.cx-glance > div { background: var(--cx-surface); padding: 12px 14px; min-width: 0; }
.cx-glance dt { font-size: 12.5px; font-weight: 600; color: var(--cx-muted); }
.cx-glance dd { margin: 2px 0 0; font-size: 14.5px; font-weight: 600; color: var(--cx-ink); line-height: 1.35; overflow-wrap: anywhere; }
.cx-glance > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.cx-block { padding: 18px 16px; }
.cx-block .cx-h2 { margin-bottom: 10px; }
.cx-steps { margin: 0; padding: 0; list-style: none; counter-reset: cxstep; display: grid; gap: 12px; }
.cx-steps li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; counter-increment: cxstep; }
.cx-steps li::before {
	content: counter(cxstep); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
	background: var(--cx-gold-soft); color: #6b4a0c; font-size: 13.5px; font-weight: 700; border: 1px solid var(--cx-gold-line);
}
.cx-steps b { display: block; font-size: 15px; font-weight: 650; color: var(--cx-ink); line-height: 1.35; padding-top: 3px; }
.cx-steps span { display: block; font-size: 14px; color: var(--cx-muted); margin-top: 2px; }
.cx-ways { display: grid; gap: 10px; margin-top: 12px; }
.cx-way { border: 1px solid var(--cx-line); border-radius: var(--cx-radius-sm); padding: 12px 14px; background: var(--cx-tint); }
.cx-way b { display: block; font-size: 14.5px; color: var(--cx-ink); }
.cx-way span { font-size: 13.5px; color: var(--cx-muted); }
.cx-aside-card { padding: 18px 16px; }
.cx-aside-card .cx-h3 { font-size: 16px; }
.cx-aside-card .cx-btn { margin-top: 14px; }
.cx-aside-note { margin-top: 10px; font-size: 13px; color: var(--cx-muted); text-align: center; }
.cx-closed { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--cx-radius); background: var(--cx-warn-bg); border: 1px solid #efd9a6; color: #5a3d00; margin-top: 14px; }
.cx-closed b { display: block; color: #4a3200; }
.cx-closed a { font-weight: 600; }

/* mobile sticky apply */
.cx-sticky {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
	background: rgba(255, 255, 255, .97); border-top: 1px solid var(--cx-line);
	box-shadow: 0 -6px 20px rgba(11, 30, 45, .08);
	padding: 10px var(--cx-gutter) calc(10px + env(safe-area-inset-bottom, 0px));
	display: flex; align-items: center; gap: 12px;
	transform: translateY(110%); visibility: hidden; transition: transform .2s ease, visibility .2s;
}
.cx-sticky.is-on { transform: none; visibility: visible; }
.cx-sticky div { min-width: 0; flex: 1 1 auto; }
.cx-sticky b { display: block; font-size: 14.5px; line-height: 1.25; color: var(--cx-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-sticky span { display: block; font-size: 12.5px; color: var(--cx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-sticky .cx-btn { flex: 0 0 auto; min-height: 46px; padding: 0 22px; }
body.cx-has-sticky .cx-foot { padding-bottom: 76px; }

/* ============================================================ CAREERS */
.cx-careers-head { background: var(--cx-surface); border-bottom: 1px solid var(--cx-line); }
.cx-careers-head .cx-wrap { padding-top: 20px; padding-bottom: 18px; }
.cx-careers-head h1 { font-size: 26px; line-height: 1.2; font-weight: 750; letter-spacing: -.015em; }
.cx-careers-head p { margin-top: 6px; color: var(--cx-body); max-width: 62ch; }
.cx-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 14px; max-width: 640px; }
.cx-results { padding-top: 18px; }
.cx-results-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cx-results-head h2 { font-size: 18px; font-weight: 700; }
.cx-jobs { display: grid; gap: 12px; }
.cx-job { padding: 16px; display: grid; gap: 8px; position: relative; transition: border-color .15s, box-shadow .15s; }
.cx-job:hover { border-color: var(--cx-line-2); box-shadow: var(--cx-shadow-lg); }
.cx-job h3 { font-size: 17px; line-height: 1.3; font-weight: 700; }
.cx-job h3 a { color: var(--cx-ink); text-decoration: none; }
.cx-job h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--cx-radius); }
.cx-job h3 a:focus-visible { outline: none; }
.cx-job h3 a:focus-visible::after { outline: 3px solid var(--cx-focus); outline-offset: 2px; }
.cx-job p { color: var(--cx-body); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-job-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--cx-muted); }
.cx-job-foot .cx-go { font-weight: 650; color: var(--cx-navy-3); display: inline-flex; align-items: center; gap: 4px; }
.cx-filters-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cx-filters { display: grid; gap: 14px; }
.cx-filters > .cx-field + .cx-field { margin-top: 0; }
.cx-drawer-head { display: flex; align-items: center; justify-content: space-between; }
.cx-empty { text-align: center; padding: 36px 16px; }
.cx-empty h3 { font-size: 17px; font-weight: 700; }
.cx-empty p { margin: 6px auto 14px; color: var(--cx-muted); max-width: 44ch; }
.cx-scrim { position: fixed; inset: 0; background: rgba(11, 30, 45, .42); z-index: 40; }

/* ============================================================== FORMS */
.cx-field { display: grid; gap: 6px; }
.cx-field + .cx-field, .cx-field + .cx-row, .cx-row + .cx-field, .cx-row + .cx-row, .cx-fieldset + .cx-field,
.cx-field + .cx-fieldset, .cx-fieldset + .cx-fieldset, .cx-row + .cx-fieldset, .cx-fieldset + .cx-row { margin-top: 16px; }
.cx-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.cx-label { font-size: 14.5px; font-weight: 600; color: var(--cx-ink); line-height: 1.35; }
.cx-opt { font-weight: 500; color: var(--cx-muted); font-size: 13px; margin-left: 4px; }
.cx-help { font-size: 13.5px; color: var(--cx-muted); line-height: 1.45; margin-top: -2px; }
.cx-input, .cx-select, .cx-textarea {
	-webkit-appearance: none; appearance: none;
	width: 100%; min-height: 48px; padding: 11px 13px; border-radius: var(--cx-radius-sm);
	border: 1px solid var(--cx-line-2); background: var(--cx-surface); color: var(--cx-ink);
	font: 400 16px/1.35 var(--cx-font); transition: border-color .15s, box-shadow .15s;
}
.cx-textarea { min-height: 96px; resize: vertical; }
.cx-select {
	padding-right: 40px; background-repeat: no-repeat; background-position: right 14px center; background-size: 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%235c6874' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
}
.cx-input::placeholder, .cx-textarea::placeholder { color: #7d8893; }
.cx-input:hover, .cx-select:hover, .cx-textarea:hover { border-color: #b5bec6; }
.cx-input:focus, .cx-select:focus, .cx-textarea:focus { border-color: var(--cx-focus); box-shadow: 0 0 0 3px rgba(29, 95, 168, .22); outline: none; }
.cx-input[aria-invalid="true"], .cx-select[aria-invalid="true"], .cx-textarea[aria-invalid="true"] { border-color: var(--cx-bad); box-shadow: 0 0 0 1px var(--cx-bad); }
.cx-input[readonly] { background: var(--cx-tint); color: var(--cx-body); }
.cx-err { display: flex; gap: 6px; align-items: flex-start; font-size: 13.5px; font-weight: 550; color: var(--cx-bad); line-height: 1.4; }
.cx-err svg { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; }
.cx-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.cx-fieldset legend { padding: 0; margin-bottom: 8px; font-size: 14.5px; font-weight: 600; color: var(--cx-ink); }
.cx-fieldset legend + .cx-help { margin: -4px 0 8px; }
.cx-choices { display: grid; gap: 8px; }
.cx-choices.cx-inline { grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.cx-choice { position: relative; display: flex; gap: 12px; align-items: flex-start; min-height: 48px; padding: 12px 14px; border: 1px solid var(--cx-line-2); border-radius: var(--cx-radius-sm); background: var(--cx-surface); cursor: pointer; transition: border-color .15s, background-color .15s; }
.cx-choice:hover { border-color: #aab4bd; }
.cx-choice input { position: absolute; opacity: 0; pointer-events: none; }
.cx-choice .cx-dot { flex: 0 0 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 2px solid #8a96a1; background: #fff; display: grid; place-items: center; }
.cx-choice input[type="checkbox"] + .cx-dot { border-radius: 6px; }
.cx-choice input:checked + .cx-dot { border-color: var(--cx-navy); background: var(--cx-navy); box-shadow: inset 0 0 0 3px #fff; }
.cx-choice input[type="checkbox"]:checked + .cx-dot { box-shadow: none; background: var(--cx-navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center/13px no-repeat; }
.cx-choice:has(input:checked) { border-color: var(--cx-navy); background: #f3f6f9; box-shadow: 0 0 0 1px var(--cx-navy); }
.cx-choice:has(input:focus-visible) { outline: 3px solid var(--cx-focus); outline-offset: 2px; }
.cx-choice.is-checked { border-color: var(--cx-navy); background: #f3f6f9; box-shadow: 0 0 0 1px var(--cx-navy); }
.cx-choice b { display: block; font-size: 15px; font-weight: 600; color: var(--cx-ink); line-height: 1.35; }
.cx-choice small { display: block; font-size: 13.5px; color: var(--cx-muted); margin-top: 2px; line-height: 1.4; }
.cx-fieldset[aria-invalid="true"] .cx-choice { border-color: #e2a39e; }
.cx-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--cx-radius-sm); background: var(--cx-info-bg); color: #1d3b57; font-size: 14px; line-height: 1.45; }
.cx-note svg { width: 18px; height: 18px; flex: 0 0 auto; margin-top: 1px; color: var(--cx-navy-3); }
.cx-note.is-warn { background: var(--cx-warn-bg); color: #573a00; }
.cx-note.is-ok { background: var(--cx-ok-bg); color: #0b4d31; }
.cx-note.is-bad { background: var(--cx-bad-bg); color: #7d1a14; }
.cx-note b { font-weight: 650; }
.cx-note .cx-link-btn { color: inherit; font-weight: 600; }

/* ======================================================== APPLICATION */
.cx-app { padding-top: 16px; }
.cx-app-inner { width: 100%; max-width: 680px; margin: 0 auto; }
.cx-context { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; margin-bottom: 10px; }
.cx-context a { font-size: 14px; font-weight: 550; color: var(--cx-muted) !important; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; min-width: 0; }
.cx-context a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-context a:hover { color: var(--cx-navy) !important; }
.cx-save { display: inline-flex; align-items: center; gap: 6px; flex: 0 0 auto; font-size: 13px; font-weight: 550; color: var(--cx-muted); min-height: 28px; padding: 3px 10px; border-radius: 999px; background: var(--cx-surface); border: 1px solid var(--cx-line); white-space: nowrap; }
.cx-save svg { width: 14px; height: 14px; }
.cx-save.is-saved { color: var(--cx-ok); }
.cx-save.is-offline, .cx-save.is-error { color: var(--cx-warn); background: var(--cx-warn-bg); border-color: #efd9a6; }
.cx-progress-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.cx-progress-head .cx-eyebrow b { color: var(--cx-ink); }
.cx-bar { height: 6px; border-radius: 99px; background: #e5e9ed; overflow: hidden; margin-top: 8px; }
.cx-bar i { display: block; height: 100%; background: var(--cx-navy); border-radius: 99px; transition: width .3s ease; }
.cx-stepper { display: none; }
.cx-stage { margin-top: 14px; }
.cx-stage-card { padding: 20px 16px 16px; }
.cx-stage-title { font-size: 21px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; color: var(--cx-ink); }
.cx-stage-lede { margin-top: 4px; color: var(--cx-body); font-size: 15px; }
.cx-stage-body { margin-top: 18px; }
.cx-actions { display: flex; flex-direction: column-reverse; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--cx-line); }
.cx-actions .cx-btn { width: 100%; }
.cx-reqnote { font-size: 13px; color: var(--cx-muted); margin-top: 12px; }
.cx-summary { border: 1px solid #efb5b0; background: var(--cx-bad-bg); border-radius: var(--cx-radius-sm); padding: 12px 14px; margin-bottom: 16px; color: #7d1a14; }
.cx-summary b { display: block; font-size: 15px; }
.cx-summary ul { margin: 6px 0 0; padding-left: 18px; font-size: 14px; }
.cx-summary a { color: #7d1a14; font-weight: 600; }

/* intro */
.cx-intro-title { font-size: 24px; line-height: 1.22; font-weight: 750; letter-spacing: -.015em; }
.cx-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 14px; color: var(--cx-body); }
.cx-facts span { display: inline-flex; align-items: center; gap: 6px; }
.cx-facts svg { width: 16px; height: 16px; color: var(--cx-gold); }
.cx-outline { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: cxo; }
.cx-outline li { display: flex; gap: 10px; align-items: center; font-size: 14.5px; color: var(--cx-body); counter-increment: cxo; }
.cx-outline li::before { content: counter(cxo); width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; background: var(--cx-tint); border: 1px solid var(--cx-line-2); color: var(--cx-navy); }
.cx-intro-actions { display: grid; gap: 10px; margin-top: 20px; }

/* experience rows */
.cx-entry { border: 1px solid var(--cx-line); border-radius: var(--cx-radius-sm); padding: 14px; background: var(--cx-tint); }
.cx-entry + .cx-entry { margin-top: 10px; }
.cx-entry-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.cx-entry-head b { font-size: 14.5px; }
.cx-add { margin-top: 10px; }
.cx-months { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.cx-disclose { margin-top: 16px; border-top: 1px solid var(--cx-line); padding-top: 12px; }
.cx-disclose > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; font-size: 14.5px; font-weight: 600; color: var(--cx-navy-3); }
.cx-disclose > summary::-webkit-details-marker { display: none; }
.cx-disclose > summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-right: 4px; transition: transform .15s; }
.cx-disclose[open] > summary::after { transform: rotate(-135deg); }
.cx-disclose > div { padding-top: 6px; }

/* uploads */
.cx-docs { display: grid; gap: 12px; }
.cx-doc { border: 1px solid var(--cx-line-2); border-radius: var(--cx-radius-sm); padding: 14px; background: var(--cx-surface); }
.cx-doc.is-done { border-color: #b9dcc7; background: #fbfefc; }
.cx-doc[aria-invalid="true"] { border-color: #e2a39e; }
.cx-doc-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.cx-doc-head b { font-size: 15px; font-weight: 650; color: var(--cx-ink); display: block; }
.cx-doc-head small { display: block; font-size: 13.5px; color: var(--cx-muted); margin-top: 2px; line-height: 1.4; }
.cx-doc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.cx-doc-btns .cx-btn { min-height: 46px; padding: 0 10px; font-size: 14.5px; }
.cx-file { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 8px; background: var(--cx-tint); border: 1px solid var(--cx-line); min-width: 0; }
.cx-file svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--cx-navy-3); }
.cx-file div { min-width: 0; flex: 1 1 auto; }
.cx-file b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-file small { display: flex; align-items: flex-start; gap: 5px; font-size: 13px; color: var(--cx-muted); line-height: 1.35; margin-top: 1px; }
.cx-file small svg { width: 14px; height: 14px; margin-top: 1px; color: currentColor; }
.cx-file small.is-ok { color: var(--cx-ok); }
.cx-file small.is-bad { color: var(--cx-bad); }
.cx-file-actions { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.cx-file-actions .cx-link-btn { font-size: 14px; min-height: 36px; }
.cx-meter { height: 4px; background: #e5e9ed; border-radius: 99px; overflow: hidden; margin-top: 6px; }
.cx-meter i { display: block; height: 100%; width: 0; background: var(--cx-navy-3); transition: width .2s; }
.cx-privacy { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--cx-body); padding: 12px 14px; border-radius: var(--cx-radius-sm); background: var(--cx-tint); border: 1px solid var(--cx-line); margin-bottom: 14px; line-height: 1.45; }
.cx-privacy svg { width: 18px; height: 18px; flex: 0 0 auto; color: var(--cx-navy-3); margin-top: 1px; }

/* review */
.cx-review { display: grid; gap: 12px; }
.cx-rsec { border: 1px solid var(--cx-line); border-radius: var(--cx-radius-sm); overflow: hidden; }
.cx-rsec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 14px; background: var(--cx-tint); border-bottom: 1px solid var(--cx-line); }
.cx-rsec-head h3 { font-size: 15px; font-weight: 650; display: flex; align-items: center; gap: 8px; }
.cx-rsec-head h3 svg { width: 18px; height: 18px; color: var(--cx-ok); }
.cx-rsec-head h3 svg.is-bad { color: var(--cx-bad); }
.cx-rsec dl { margin: 0; padding: 4px 14px 10px; }
.cx-rsec dl > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; padding: 8px 0; border-bottom: 1px solid #eef1f3; }
.cx-rsec dl > div:last-child { border-bottom: 0; }
.cx-rsec dt { font-size: 13px; color: var(--cx-muted); font-weight: 550; }
.cx-rsec dd { margin: 0; font-size: 14.5px; color: var(--cx-ink); overflow-wrap: anywhere; white-space: pre-line; }
.cx-rsec .cx-missing { color: var(--cx-bad); font-weight: 600; }

/* confirmation + status */
.cx-done { text-align: center; padding: 28px 16px 20px; }
.cx-done-icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--cx-ok-bg); color: var(--cx-ok); }
.cx-done-icon svg { width: 28px; height: 28px; }
.cx-done h1 { font-size: 24px; line-height: 1.25; font-weight: 750; letter-spacing: -.01em; }
.cx-done p { margin-top: 6px; color: var(--cx-body); }
.cx-ref { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 12px; margin-top: 16px; padding: 10px 12px 10px 14px; border-radius: var(--cx-radius-sm); border: 1px dashed var(--cx-line-2); background: var(--cx-tint); max-width: 100%; }
.cx-ref span { font-size: 12px; color: var(--cx-muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cx-ref b { font: 700 16px/1.2 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .03em; color: var(--cx-ink); white-space: nowrap; }
.cx-ref button { min-height: 36px; padding: 0 12px; font-size: 13.5px; }
.cx-jobline { display: grid; gap: 2px; text-align: left; margin-top: 18px; padding: 14px 16px; border-radius: var(--cx-radius-sm); border: 1px solid var(--cx-line); }
.cx-jobline b { font-size: 15.5px; }
.cx-jobline span { font-size: 14px; color: var(--cx-muted); }
.cx-track { margin: 0; padding: 0; list-style: none; display: grid; gap: 0; text-align: left; }
.cx-track li { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding-bottom: 16px; }
.cx-track li:last-child { padding-bottom: 0; }
.cx-track li::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--cx-line); }
.cx-track li:last-child::after { display: none; }
.cx-track i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--cx-surface); border: 2px solid var(--cx-line-2); color: var(--cx-muted); font-style: normal; font-size: 12.5px; font-weight: 700; position: relative; z-index: 1; }
.cx-track li.is-done i { background: var(--cx-ok); border-color: var(--cx-ok); color: #fff; }
.cx-track li.is-done i svg { width: 14px; height: 14px; }
.cx-track li.is-now i { border-color: var(--cx-navy); color: var(--cx-navy); box-shadow: 0 0 0 4px rgba(11, 30, 45, .08); }
.cx-track b { display: block; font-size: 15px; font-weight: 650; padding-top: 3px; line-height: 1.3; }
.cx-track li:not(.is-done):not(.is-now) b { color: var(--cx-muted); font-weight: 600; }
.cx-track span { display: block; font-size: 14px; color: var(--cx-body); margin-top: 2px; }
.cx-done-actions { display: grid; gap: 10px; margin-top: 20px; }
.cx-when { margin-top: 8px; padding: 10px 12px; border-radius: 8px; background: var(--cx-info-bg); color: #1d3b57; font-weight: 600; font-size: 14.5px; }

/* code entry */
.cx-code { font: 700 22px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .35em; text-align: center; }

/* toast */
.cx-toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 60; background: var(--cx-navy); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: 14px; font-weight: 550; box-shadow: var(--cx-shadow-lg); max-width: calc(100vw - 32px); }

/* loading skeleton */
.cx-loading { padding: 40px 16px; text-align: center; color: var(--cx-muted); }
.cx-loading .cx-spin { display: inline-block; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--cx-line-2); border-right-color: var(--cx-navy); animation: cx-spin .8s linear infinite; }

/* modal (preview, code) */
.cx-modal { position: fixed; inset: 0; z-index: 70; display: flex; align-items: flex-end; justify-content: center; background: rgba(11, 30, 45, .55); }
.cx-modal-card { background: var(--cx-surface); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); }
.cx-modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.cx-modal-head h2 { font-size: 18px; font-weight: 700; }
.cx-x { width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--cx-body); }
.cx-x:hover { background: var(--cx-tint); }
.cx-x svg { width: 20px; height: 20px; }
.cx-preview-img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--cx-line); background: #f0f2f4; }

/* camera */
.cx-cam { position: fixed; inset: 0; z-index: 80; background: #05080b; color: #fff; display: flex; flex-direction: column; }
.cx-cam-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px; }
.cx-cam-top b { font-size: 15px; font-weight: 600; }
.cx-cam-top .cx-x { color: #fff; }
.cx-cam-top .cx-x:hover { background: rgba(255, 255, 255, .1); }
.cx-cam-view { position: relative; flex: 1 1 auto; overflow: hidden; display: grid; place-items: center; }
.cx-cam-view video, .cx-cam-view img { width: 100%; height: 100%; object-fit: cover; }
.cx-cam-view img { object-fit: contain; background: #05080b; }
.cx-cam-guide { position: absolute; border: 2px solid rgba(255, 255, 255, .92); border-radius: 12px; box-shadow: 0 0 0 9999px rgba(0, 0, 0, .45); pointer-events: none; }
.cx-cam-hint { position: absolute; left: 12px; right: 12px; bottom: 14px; text-align: center; font-size: 14px; font-weight: 550; text-shadow: 0 1px 3px rgba(0, 0, 0, .6); }
.cx-cam-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px)); background: #05080b; }
.cx-cam-bar .cx-btn { min-height: 48px; }
.cx-cam-bar .cx-btn-secondary { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .45); }
.cx-cam-bar .cx-btn-primary { background: #fff; color: var(--cx-navy) !important; border-color: #fff; }
.cx-shutter { width: 72px; height: 72px; border-radius: 50%; border: 4px solid #fff; background: rgba(255, 255, 255, .15); cursor: pointer; flex: 0 0 auto; }
.cx-shutter:active { background: rgba(255, 255, 255, .45); }
.cx-cam-side { width: 96px; display: flex; justify-content: center; }
.cx-cam-side .cx-link-btn { color: #fff; font-size: 14px; text-align: center; }

/* ============================================================ desktop */
@media (min-width: 600px) {
	:root { --cx-gutter: 24px; }
	.cx-card-pad, .cx-block, .cx-aside-card { padding: 22px 24px; }
	.cx-stage-card { padding: 26px 28px 22px; }
	.cx-row.cx-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.cx-actions { flex-direction: row; justify-content: space-between; align-items: center; }
	.cx-actions .cx-btn { width: auto; min-width: 150px; }
	.cx-intro-actions { grid-template-columns: auto auto; justify-content: start; }
	.cx-done-actions { grid-template-columns: auto auto; justify-content: center; }
	.cx-glance { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.cx-glance > div:last-child:nth-child(odd) { grid-column: auto; }
	.cx-rsec dl > div { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
	.cx-modal { align-items: center; }
	.cx-modal-card { border-radius: 16px; padding: 22px 24px; }
	.cx-ways { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
	.cx-job { padding: 18px 20px; }
}
@media (min-width: 960px) {
	.cx-job-title { font-size: 32px; }
	.cx-job-head .cx-wrap { padding-top: 20px; padding-bottom: 24px; }
	.cx-job-grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
	.cx-job-aside { position: sticky; top: 16px; }
	.cx-careers-head h1 { font-size: 30px; }
	.cx-results-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
	.cx-filters-panel { position: sticky; top: 16px; }
	.cx-stepper { display: flex; gap: 6px; margin-top: 12px; }
	.cx-stepper li { flex: 1 1 0; list-style: none; min-width: 0; }
	.cx-stepper ol { display: contents; }
	.cx-stepper span { display: block; height: 4px; border-radius: 99px; background: #e2e6ea; }
	.cx-stepper li.is-done span, .cx-stepper li.is-now span { background: var(--cx-navy); }
	.cx-stepper b { display: block; margin-top: 7px; font-size: 13px; font-weight: 600; color: var(--cx-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.cx-stepper li.is-now b { color: var(--cx-ink); }
	.cx-stepper li.is-done b { color: var(--cx-body); }
	.cx-stepper button { all: unset; display: block; width: 100%; cursor: pointer; border-radius: 6px; }
	.cx-stepper button:focus-visible { outline: 3px solid var(--cx-focus); outline-offset: 3px; }
	.cx-stepper button[disabled] { cursor: default; }
	.cx-bar { display: none; }
	.cx-app { padding-top: 24px; }
}
@media (min-width: 960px) { .cx-sticky { display: none; } }
@media (max-width: 959px) {
	.cx-job-aside { display: none; }
	.cx-filters-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: var(--cx-surface); border-radius: 16px 16px 0 0; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -10px 30px rgba(11, 30, 45, .2); max-height: 85vh; overflow: auto; transform: translateY(105%); transition: transform .2s ease; }
	.cx-filters-panel.is-open { transform: none; }
}
@media (min-width: 960px) {
	.cx-filters-open, .cx-drawer-close, .cx-scrim { display: none !important; }
}
@media (prefers-reduced-motion: reduce) {
	.cx *, .cx *::before, .cx *::after { transition: none !important; animation-duration: .001s !important; scroll-behavior: auto !important; }
}
@media print {
	.cx-top nav, .cx-sticky, .cx-foot, .cx-save { display: none !important; }
	body.cx { background: #fff; }
}
