/* ============================================================
   ATS Resume Scorer — Apple-grade UI · 101 Digital Frames
   Mobile-first · v1.5.0
   ============================================================ */

:root {
	/* Resume Thrive — teal/green brand */
	--ats-blue:        #10b981;   /* primary (teal-green) */
	--ats-blue-dark:   #059669;
	--ats-blue-light:  #e6f9f1;
	--ats-green:       #16a34a;
	--ats-green-bg:    #e9f9ef;
	--ats-green-text:  #15803d;
	--ats-red:         #ef4444;
	--ats-red-bg:      #fef2f2;
	--ats-red-text:    #b91c1c;
	--ats-orange:      #f59e0b;
	/* Checklist status colours */
	--rt-pass:         #16a34a;
	--rt-pass-bg:      #e9f9ef;
	--rt-warn:         #f59e0b;
	--rt-warn-bg:      #fff7e6;
	--rt-fail:         #ef4444;
	--rt-fail-bg:      #fef2f2;
	--ats-bg:          #f5f5f7;
	--ats-bg-2:        #fafafc;
	--ats-surface:     #ffffff;
	--ats-border:      rgba(0, 0, 0, 0.09);
	--ats-border-2:    rgba(0, 0, 0, 0.14);
	--ats-text:        #1d1d1f;
	--ats-secondary:   #6e6e73;
	--ats-tertiary:    #a1a1a6;
	--ats-radius-2xl:  24px;
	--ats-radius-xl:   20px;
	--ats-radius-lg:   16px;
	--ats-radius-md:   12px;
	--ats-radius-sm:   8px;
	--ats-radius-pill: 100px;
	--ats-shadow-xs:   0 1px 2px rgba(0,0,0,.04);
	--ats-shadow-sm:   0 1px 3px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
	--ats-shadow:      0 2px 8px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.07);
	--ats-font:        -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif;
	--ats-mono:        "SF Mono", "Fira Code", ui-monospace, monospace;
	--ats-ease:        cubic-bezier(.4, 0, .2, 1);
	--ats-transition:  .24s var(--ats-ease);
}

/* ── Base ──────────────────────────────────────────────────── */
.ats-wrap {
	font-family: var(--ats-font);
	color: var(--ats-text);
	background: linear-gradient(180deg, #fbfbfd 0%, var(--ats-bg) 100%);
	border: 1px solid var(--ats-border);
	border-radius: var(--ats-radius-2xl);
	padding: 30px 20px;
	width: 100%;
	max-width: 940px;
	margin-left: auto;
	margin-right: auto;
	box-sizing: border-box;
	overflow-wrap: break-word;
	word-wrap: break-word;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
.ats-wrap *, .ats-wrap *::before, .ats-wrap *::after { box-sizing: border-box; }

/* Make the [hidden] attribute always win over display rules (fixes empty alert box) */
.ats-wrap [hidden] { display: none !important; }

/* Long words / strings must never blow out the layout */
.ats-wrap p, .ats-wrap span, .ats-wrap li, .ats-wrap h2, .ats-wrap h3, .ats-wrap h4 {
	overflow-wrap: break-word;
	word-wrap: break-word;
	max-width: 100%;
}

/* FORCE text to wrap — beats themes that set white-space:nowrap/pre on content
   (this is what was pushing text off-screen to the right). */
.ats-wrap,
.ats-wrap p, .ats-wrap span, .ats-wrap li, .ats-wrap a,
.ats-wrap div, .ats-wrap label, .ats-wrap button,
.ats-wrap h2, .ats-wrap h3, .ats-wrap h4, .ats-wrap textarea {
	white-space: normal !important;
}
/* Keep the uploaded-file name on one line with ellipsis */
.ats-wrap .ats-filecard__name { white-space: nowrap !important; }

/* Nicer line breaking on modern browsers */
.ats-header__title, .ats-results__heading { text-wrap: balance; }
.ats-header__sub, .ats-overview__summary, .ats-check__tip, .ats-jd-hint { text-wrap: pretty; }

/* ── Header ────────────────────────────────────────────────── */
.ats-header {
	text-align: center;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--ats-border);
}
.ats-header__icon {
	font-size: 2.6rem;
	line-height: 1;
	display: inline-block;
	margin-bottom: 12px;
	filter: drop-shadow(0 4px 10px rgba(16,185,129,.18));
}
.ats-header__title {
	font-size: clamp(1.55rem, 4.5vw, 2.1rem);
	font-weight: 700;
	letter-spacing: -.03em;
	margin: 0 0 9px;
	line-height: 1.1;
}
.ats-header__sub {
	font-size: .95rem;
	color: var(--ats-secondary);
	margin: 0 auto;
	line-height: 1.55;
	max-width: 520px;
}

/* ── Form (constrained for readability) ────────────────────── */
.ats-form { max-width: 620px; margin: 0 auto; }

/* ── Field & labels ────────────────────────────────────────── */
.ats-field { margin-bottom: 22px; }
.ats-field > label,
.ats-field__label-row > label {
	display: block;
	font-size: .85rem;
	font-weight: 600;
	letter-spacing: -.01em;
	margin-bottom: 9px;
	color: var(--ats-text);
}
.ats-required { color: var(--ats-red); margin-left: 2px; }
.ats-optional {
	font-size: .68rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .05em;
	color: var(--ats-secondary);
	background: var(--ats-bg);
	border: 1px solid var(--ats-border);
	border-radius: var(--ats-radius-pill);
	padding: 2px 9px;
	margin-left: 6px;
	vertical-align: middle;
}

.ats-field__label-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 9px;
	flex-wrap: wrap;
}
.ats-field__label-row > label { margin-bottom: 0; }

/* ── Segmented control (JD toggle) ─────────────────────────── */
.ats-segment {
	display: inline-flex;
	align-items: center;
	background: var(--ats-bg);
	border: 1px solid var(--ats-border);
	border-radius: var(--ats-radius-pill);
	padding: 3px;
	gap: 2px;
	line-height: 1;
}
/* Reset every theme button style so the toggle never overflows */
.ats-segment__btn {
	-webkit-appearance: none !important;
	appearance: none !important;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
	font-family: var(--ats-font) !important;
	font-size: .8rem !important;
	font-weight: 600 !important;
	color: var(--ats-secondary) !important;
	padding: 7px 16px !important;
	margin: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	line-height: 1 !important;
	border-radius: var(--ats-radius-pill) !important;
	cursor: pointer;
	transition: var(--ats-transition);
	text-transform: none !important;
	letter-spacing: normal !important;
}
.ats-segment__btn:hover { color: var(--ats-text) !important; }
.ats-segment__btn.is-active {
	background: var(--ats-surface) !important;
	color: var(--ats-blue) !important;
	box-shadow: var(--ats-shadow-xs) !important;
}

/* ── Toggle switch (enable JD) ─────────────────────────────── */
.ats-switch {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	user-select: none;
}
.ats-switch__text { font-size: .78rem; font-weight: 600; color: var(--ats-secondary); }
.ats-switch input {
	position: absolute;
	opacity: 0;
	width: 1px; height: 1px;
	margin: 0;
}
.ats-switch__track {
	position: relative;
	width: 42px; height: 24px;
	background: var(--ats-border-2);
	border-radius: 100px;
	transition: background var(--ats-transition);
	flex-shrink: 0;
}
.ats-switch__thumb {
	position: absolute;
	top: 2px; left: 2px;
	width: 20px; height: 20px;
	background: #fff;
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(0,0,0,.25);
	transition: transform var(--ats-transition);
}
.ats-switch input:checked + .ats-switch__track { background: var(--ats-blue); }
.ats-switch input:checked + .ats-switch__track .ats-switch__thumb { transform: translateX(18px); }
.ats-switch input:focus-visible + .ats-switch__track { box-shadow: 0 0 0 3px rgba(16,185,129,.28); }

/* ── JD Add / Remove button ────────────────────────────────── */
.ats-jd-btn {
	-webkit-appearance: none !important;
	appearance: none !important;
	display: inline-flex !important;
	align-items: center;
	gap: 7px;
	background: var(--ats-blue-light) !important;
	color: var(--ats-blue) !important;
	border: 1.5px solid transparent !important;
	box-shadow: none !important;
	border-radius: var(--ats-radius-pill) !important;
	padding: 8px 16px !important;
	margin: 0 !important;
	min-height: 0 !important;
	height: auto !important;
	line-height: 1 !important;
	font-family: var(--ats-font) !important;
	font-size: .82rem !important;
	font-weight: 600 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	cursor: pointer;
	transition: var(--ats-transition);
}
.ats-jd-btn:hover { background: var(--ats-blue) !important; color: #fff !important; }
.ats-jd-btn__icon { font-size: 1.1rem; font-weight: 700; line-height: 1; display: inline-block; }

/* Active = remove state (red) */
.ats-jd-btn.is-active { background: var(--rt-fail-bg) !important; color: var(--rt-fail) !important; }
.ats-jd-btn.is-active:hover { background: var(--rt-fail) !important; color: #fff !important; }

/* JD hint + body */
.ats-jd-hint { font-size: .8rem; color: var(--ats-secondary); margin: 0; line-height: 1.5; }
.ats-jd-body { margin-top: 14px; }
.ats-jd-body .ats-segment { margin-bottom: 12px; }

/* ── Dropzone ──────────────────────────────────────────────── */
.ats-dropzone {
	position: relative;
	background: var(--ats-surface);
	border: 1.5px dashed var(--ats-border-2);
	border-radius: var(--ats-radius-lg);
	transition: var(--ats-transition);
	overflow: hidden;
}
.ats-dropzone:hover {
	border-color: var(--ats-blue);
	background: var(--ats-bg-2);
}
.ats-dropzone.is-dragover {
	border-color: var(--ats-blue);
	border-style: solid;
	background: var(--ats-blue-light);
}
.ats-dropzone.has-file {
	border-style: solid;
	border-color: var(--ats-border);
}

/* Visually-hidden file input (label drives the click) */
.ats-file-input {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

/* Idle = the clickable label */
.ats-dropzone__idle {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	cursor: pointer;
	padding: 32px 20px;
	margin: 0;
}
.ats-dropzone.has-file .ats-dropzone__idle { display: none; }

.ats-dropzone__svg {
	color: var(--ats-tertiary);
	margin-bottom: 12px;
	transition: var(--ats-transition);
}
.ats-dropzone:hover .ats-dropzone__svg,
.ats-dropzone.is-dragover .ats-dropzone__svg { color: var(--ats-blue); transform: translateY(-2px); }

.ats-dropzone__title {
	display: block;
	font-size: .95rem;
	font-weight: 600;
	margin-bottom: 3px;
	color: var(--ats-text);
}
.ats-dropzone__sub {
	display: block;
	font-size: .85rem;
	color: var(--ats-secondary);
	margin-bottom: 10px;
}
.ats-dropzone__browse {
	color: var(--ats-blue);
	font-weight: 600;
	text-decoration: underline;
	text-underline-offset: 2px;
}
.ats-dropzone__formats {
	display: block;
	font-size: .72rem;
	color: var(--ats-tertiary);
	letter-spacing: .01em;
}

/* File card (after upload) */
.ats-filecard {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
}
.ats-filecard__icon {
	font-size: 1.5rem;
	flex-shrink: 0;
	width: 42px; height: 42px;
	display: flex; align-items: center; justify-content: center;
	background: var(--ats-bg);
	border-radius: var(--ats-radius-sm);
}
.ats-filecard.is-ready  .ats-filecard__icon { background: var(--ats-green-bg); }
.ats-filecard.is-error  .ats-filecard__icon { background: var(--ats-red-bg); }

.ats-filecard__meta { flex: 1; min-width: 0; }
.ats-filecard__name {
	display: block;
	font-size: .88rem;
	font-weight: 600;
	color: var(--ats-text);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ats-filecard__status {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: .78rem;
	color: var(--ats-secondary);
	margin-top: 2px;
}
.ats-filecard.is-ready .ats-filecard__status { color: var(--ats-green-text); }
.ats-filecard.is-error .ats-filecard__status { color: var(--ats-red-text); }

.ats-filecard__remove {
	flex-shrink: 0;
	background: var(--ats-bg) !important;
	border: none !important;
	box-shadow: none !important;
	border-radius: 50% !important;
	width: 32px !important;
	height: 32px !important;
	min-height: 32px !important;
	min-width: 32px !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	color: var(--ats-secondary) !important;
	cursor: pointer;
	transition: var(--ats-transition);
}
.ats-filecard__remove:hover { background: var(--ats-red-bg) !important; color: var(--ats-red) !important; }
.ats-filecard__remove .ats-x {
	font-size: 22px;
	line-height: 1;
	font-weight: 400;
	display: block;
	margin-top: -2px;
}

.ats-spin-dot {
	width: 11px; height: 11px;
	border: 2px solid rgba(16,185,129,.25);
	border-top-color: var(--ats-blue);
	border-radius: 50%;
	display: inline-block;
	animation: ats-spin .65s linear infinite;
}

/* ── Textarea (JD paste) ───────────────────────────────────── */
.ats-field textarea {
	width: 100%;
	background: var(--ats-surface);
	border: 1.5px solid var(--ats-border-2);
	border-radius: var(--ats-radius-lg);
	padding: 14px 16px;
	font-size: 1rem;
	font-family: var(--ats-font);
	color: var(--ats-text);
	line-height: 1.6;
	resize: vertical;
	transition: var(--ats-transition);
}
.ats-field textarea:focus {
	outline: none;
	border-color: var(--ats-blue);
	box-shadow: 0 0 0 4px rgba(16,185,129,.13);
}
.ats-field textarea::placeholder { color: var(--ats-tertiary); }

/* ── Buttons ───────────────────────────────────────────────── */
.ats-btn-primary {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	background: var(--ats-blue);
	color: #fff;
	border: none;
	border-radius: var(--ats-radius-pill);
	padding: 16px 30px;
	font-size: 1.02rem;
	font-weight: 600;
	font-family: var(--ats-font);
	letter-spacing: -.01em;
	cursor: pointer;
	transition: var(--ats-transition);
	box-shadow: 0 4px 14px rgba(16,185,129,.28);
}
.ats-btn-primary:hover  { background: var(--ats-blue-dark); box-shadow: 0 6px 20px rgba(16,185,129,.36); transform: translateY(-1px); }
.ats-btn-primary:active { transform: translateY(0) scale(.99); }
.ats-btn-primary:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }

.ats-btn-ghost {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--ats-surface);
	color: var(--ats-blue);
	border: 1.5px solid var(--ats-border-2);
	border-radius: var(--ats-radius-pill);
	padding: 8px 18px;
	font-size: .85rem;
	font-weight: 600;
	font-family: var(--ats-font);
	cursor: pointer;
	transition: var(--ats-transition);
}
.ats-btn-ghost:hover { border-color: var(--ats-blue); background: var(--ats-blue-light); }

.btn-loader {
	width: 18px; height: 18px;
	border: 2.5px solid rgba(255,255,255,.35);
	border-top-color: #fff;
	border-radius: 50%;
	display: none;
	animation: ats-spin .65s linear infinite;
}
.ats-loading .btn-loader { display: block; }
.ats-loading .btn-text   { opacity: .85; }
@keyframes ats-spin { to { transform: rotate(360deg); } }

/* ── Progress indicator ────────────────────────────────────── */
.ats-progress-box {
	max-width: 620px;
	margin: 16px auto 0;
	background: var(--ats-surface);
	border: 1px solid var(--ats-border);
	border-radius: var(--ats-radius-md);
	padding: 14px 16px;
	box-shadow: var(--ats-shadow-xs);
	animation: ats-fade-in .3s var(--ats-ease);
}
.ats-progress-box__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 9px;
}
.ats-progress-box__label { font-size: .85rem; font-weight: 600; color: var(--ats-text); }
.ats-progress-box__pct   { font-size: .85rem; font-weight: 700; color: var(--ats-blue); font-variant-numeric: tabular-nums; }
.ats-progress-box__track {
	background: var(--ats-bg);
	border-radius: var(--ats-radius-pill);
	height: 8px;
	overflow: hidden;
}
.ats-progress-box__fill {
	height: 100%;
	width: 0;
	border-radius: var(--ats-radius-pill);
	background: linear-gradient(90deg, var(--ats-blue), #34d399);
	transition: width .35s var(--ats-ease);
}

/* ── Alert ─────────────────────────────────────────────────── */
.ats-alert {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	background: var(--ats-red-bg);
	color: var(--ats-red-text);
	border: 1px solid rgba(255,59,48,.18);
	border-radius: var(--ats-radius-md);
	padding: 13px 15px;
	font-size: .88rem;
	margin-top: 14px;
	line-height: 1.5;
	animation: ats-fade-in .3s var(--ats-ease);
}
.ats-alert::before { content: '⚠'; font-size: 1rem; flex-shrink: 0; }
@keyframes ats-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ── Setup notice (not configured) ─────────────────────────── */
.ats-setup-notice { text-align: center; padding: 24px 12px 8px; }
.ats-setup-notice__icon { font-size: 2.6rem; display: block; margin-bottom: 12px; }
.ats-setup-notice h3 { font-size: 1.25rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.02em; }
.ats-setup-notice p { font-size: .92rem; color: var(--ats-secondary); margin: 0 auto 18px; max-width: 420px; line-height: 1.55; }
.ats-setup-notice__hint { font-size: .78rem; color: var(--ats-tertiary); margin-top: 14px !important; }

/* ════════════════════════════════════════════════════════════
   RESULTS
   ════════════════════════════════════════════════════════════ */
.ats-results { margin-top: 38px; animation: ats-fade-in .45s var(--ats-ease); }

.ats-results__topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 22px;
}
.ats-results__heading { font-size: 1.3rem; font-weight: 700; letter-spacing: -.025em; margin: 0; }

/* Layout: sidebar + main */
.ats-results__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 16px;
}
.ats-results__sidebar { min-width: 0; }

/* ── Sidebar overview ──────────────────────────────────────── */
.ats-overview {
	background: var(--ats-surface);
	border: 1px solid var(--ats-border);
	border-radius: var(--ats-radius-xl);
	padding: 28px 22px;
	box-shadow: var(--ats-shadow);
	text-align: center;
}
.ats-ring-wrap { position: relative; width: 140px; height: 140px; margin: 0 auto 16px; }
.ats-ring-svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ats-ring-track { fill: none; stroke: var(--ats-bg); stroke-width: 10; }
.ats-ring-progress {
	fill: none;
	stroke: var(--ats-blue);
	stroke-width: 10;
	stroke-linecap: round;
	stroke-dasharray: 326.73;
	stroke-dashoffset: 326.73;
	transition: stroke-dashoffset 1.15s var(--ats-ease), stroke .4s;
}
.ats-ring-label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; }
.ats-ring-num { font-size: 2.7rem; font-weight: 700; letter-spacing: -.04em; line-height: .95; }
.ats-ring-out { font-size: .68rem; font-weight: 600; color: var(--ats-secondary); text-transform: uppercase; letter-spacing: .08em; }

.ats-grade { font-size: 1.15rem; font-weight: 700; margin: 0 0 8px; letter-spacing: -.015em; }
.grade--excellent { color: var(--ats-green-text); }
.grade--good      { color: var(--ats-blue); }
.grade--average   { color: var(--ats-orange); }
.grade--poor      { color: var(--ats-red); }

.ats-overview__summary {
	font-size: .88rem;
	color: var(--ats-secondary);
	margin: 0;
	line-height: 1.6;
}

/* Mini sub-scores */
.ats-overview__scores {
	margin-top: 22px;
	padding-top: 20px;
	border-top: 1px solid var(--ats-border);
	display: flex;
	flex-direction: column;
	gap: 14px;
	text-align: left;
}
.ats-mini__top {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 6px;
}
.ats-mini__label { font-size: .82rem; font-weight: 500; color: var(--ats-text); display: flex; align-items: center; gap: 6px; min-width: 0; }
.ats-mini__val   { font-size: .92rem; font-weight: 700; color: var(--ats-blue); }
.ats-mini__bar   { background: var(--ats-bg); border-radius: var(--ats-radius-pill); height: 6px; overflow: hidden; }
.ats-mini__fill  { height: 100%; width: 0; border-radius: var(--ats-radius-pill); background: var(--ats-blue); transition: width 1.1s var(--ats-ease); }

/* ── Main detail cards ─────────────────────────────────────── */
.ats-results__main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; min-width: 0; }

.ats-card {
	background: var(--ats-surface);
	border: 1px solid var(--ats-border);
	border-radius: var(--ats-radius-lg);
	padding: 22px;
	box-shadow: var(--ats-shadow-sm);
	transition: var(--ats-transition);
	min-width: 0;
	overflow: hidden;
}
.ats-card:hover { box-shadow: var(--ats-shadow); }
.ats-card__head { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; min-width: 0; }
.ats-card__icon {
	font-size: 1.1rem; line-height: 1; flex-shrink: 0;
	width: 38px; height: 38px;
	display: flex; align-items: center; justify-content: center;
	background: var(--ats-blue-light);
	border-radius: var(--ats-radius-md);
}
.ats-card__head-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ats-card__title { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; color: var(--ats-text); }
.ats-card__meta  { font-size: .76rem; color: var(--ats-secondary); }
.ats-card__score { font-size: 1.35rem; font-weight: 700; color: var(--ats-blue); flex-shrink: 0; letter-spacing: -.02em; }

/* ── Checklist ─────────────────────────────────────────────── */
.ats-checks { list-style: none; margin: 0; padding: 0; }
.ats-check {
	display: flex;
	align-items: flex-start;
	gap: 11px;
	padding: 11px 0;
	border-top: 1px solid var(--ats-border);
}
.ats-check:first-child { border-top: none; padding-top: 4px; }
.ats-check__icon {
	flex-shrink: 0;
	width: 20px; height: 20px;
	border-radius: 50%;
	display: flex; align-items: center; justify-content: center;
	font-size: 12px; font-weight: 700; line-height: 1;
	color: #fff;
	margin-top: 1px;
}
.ats-check--pass .ats-check__icon { background: var(--rt-pass); }
.ats-check--warn .ats-check__icon { background: var(--rt-warn); }
.ats-check--fail .ats-check__icon { background: var(--rt-fail); }
.ats-check--pass .ats-check__icon::before { content: '✓'; }
.ats-check--warn .ats-check__icon::before { content: '!'; }
.ats-check--fail .ats-check__icon::before { content: '✕'; }

.ats-check__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ats-check__label {
	font-size: .9rem; font-weight: 600; color: var(--ats-text);
	overflow-wrap: anywhere;
}
.ats-check__tip {
	font-size: .82rem; color: var(--ats-secondary); line-height: 1.5;
	overflow-wrap: anywhere;
}

.ats-bar { background: var(--ats-bg); border-radius: var(--ats-radius-pill); height: 7px; overflow: hidden; margin-bottom: 18px; }
.ats-bar__fill { height: 100%; width: 0; border-radius: var(--ats-radius-pill); background: var(--ats-blue); transition: width 1.15s var(--ats-ease); }

.ats-card__section { margin-bottom: 15px; }
.ats-card__section:last-child { margin-bottom: 0; }

.ats-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ats-secondary); margin: 0 0 9px; }
.ats-label--green { color: var(--ats-green-text); }
.ats-label--red   { color: var(--ats-red-text); }

.ats-tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.ats-tag { font-size: .79rem; font-weight: 500; padding: 4px 12px; border-radius: var(--ats-radius-pill); line-height: 1.45; max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
.ats-tag--good    { background: var(--ats-green-bg); color: var(--ats-green-text); }
.ats-tag--missing { background: var(--ats-red-bg);   color: var(--ats-red-text); }
.ats-tag--neutral { background: var(--ats-bg);       color: var(--ats-secondary); }

.ats-list { margin: 0; padding-left: 17px; font-size: .88rem; color: var(--ats-text); line-height: 1.7; overflow-wrap: anywhere; word-break: break-word; }
.ats-list li + li { margin-top: 5px; }

.ats-skills-cols { display: grid; grid-template-columns: 1fr; gap: 15px; margin-bottom: 15px; }

/* Footer */
.ats-footer-note { text-align: center; font-size: .75rem; color: var(--ats-tertiary); margin: 24px 0 0; }
.ats-footer-note a { color: var(--ats-secondary); text-decoration: none; }
.ats-footer-note a:hover { text-decoration: underline; }

/* ════════════ Tablet — 600px ════════════ */
@media (min-width: 600px) {
	.ats-wrap { padding: 40px 32px; }
	.ats-skills-cols { grid-template-columns: 1fr 1fr; }
}

/* ════════════ Desktop — 900px ════════════ */
@media (min-width: 900px) {
	.ats-wrap { padding: 48px 44px; }
	.ats-btn-primary { width: auto; min-width: 220px; margin-inline: auto; }

	.ats-results__layout {
		grid-template-columns: 300px minmax(0, 1fr);
		gap: 20px;
		align-items: start;
	}
	.ats-results__sidebar {
		position: -webkit-sticky;
		position: sticky;
		top: 20px;
		align-self: start;
	}
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
	.ats-ring-progress, .ats-bar__fill, .ats-mini__fill, .ats-btn-primary, .ats-dropzone { transition: none; }
	.ats-results, .ats-alert { animation: none; }
}

/* ════════════════════════════════════════════════════════════
   MINI / COMPACT variant — [ats_resume_scorer_mini] for blog posts
   ════════════════════════════════════════════════════════════ */
.ats-wrap--mini {
	max-width: 480px;
	padding: 26px 22px;
}
.ats-header--mini {
	padding-bottom: 18px;
	margin-bottom: 20px;
}
.ats-header--mini .ats-header__icon { display: none; }
.ats-header--mini .ats-header__title { font-size: 1.4rem; }
.ats-header--mini .ats-header__sub { font-size: .88rem; }

.ats-wrap--mini .ats-form { max-width: 100%; }
.ats-wrap--mini .ats-field { margin-bottom: 16px; }
.ats-wrap--mini .ats-btn-primary { width: 100%; min-width: 0; margin: 0; }

.ats-wrap--mini .ats-results { margin-top: 24px; }
.ats-wrap--mini .ats-overview { padding: 24px 20px; }
.ats-wrap--mini .ats-ring-wrap { width: 120px; height: 120px; }

.ats-mini-restart {
	width: 100%;
	justify-content: center;
	margin-top: 18px;
}
