/**
 * Novin Smart Assessment — unified applicant dashboard.
 *
 * Every rule is scoped under #novin-applicant-dashboard. The dashboard renders
 * inside somebody's theme, on a page they built, and generic names like .card
 * or .sidebar would restyle it — which is a bug that only shows up on the one
 * site that used the same class.
 *
 * Institutional rather than playful: calm surfaces, one accent, restrained
 * shadows, gradients only where a status needs to carry weight. This is a
 * screen people open to find out whether their money arrived, and it should
 * look like the company takes that seriously.
 */

#novin-applicant-dashboard {
	--d-navy: #073451;
	--d-dark: #03283f;
	--d-blue: #087a9a;
	--d-cyan: #28c2dd;
	--d-green: #16a985;
	--d-gold: #dcae47;
	--d-red: #d86168;

	--d-bg: #f3f9fb;
	--d-surface: #ffffff;
	--d-wash: #eef8fb;
	--d-line: #dbe8ee;
	--d-text: #12222e;
	--d-muted: #64798a;

	--d-radius: 16px;
	--d-radius-sm: 11px;
	--d-shadow: 0 22px 60px rgba(7, 57, 86, .10);
	--d-shadow-sm: 0 2px 10px rgba(7, 57, 86, .06);

	--d-nav: 246px;

	direction: rtl;
	background: var(--d-bg);
	color: var(--d-text);
	font-family: IRANSansX, IRANSans, Vazirmatn, Tahoma, Arial, sans-serif;
	font-size: 15px;
	line-height: 2;
	text-align: start;
	border-radius: var(--d-radius);
	overflow: hidden;
}

#novin-applicant-dashboard *,
#novin-applicant-dashboard *::before,
#novin-applicant-dashboard *::after { box-sizing: border-box; }

#novin-applicant-dashboard :focus-visible {
	outline: 2px solid var(--d-cyan);
	outline-offset: 2px;
	border-radius: 8px;
}

#novin-applicant-dashboard a { text-decoration: none; color: inherit; }

/* ============================================================== topbar */

#novin-applicant-dashboard .nsa-d__topbar {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 13px 20px;
	background: var(--d-navy);
	color: #fff;
}

#novin-applicant-dashboard .nsa-d__brand {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: none;
}

#novin-applicant-dashboard .nsa-d__brand-mark {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 9px;
	background: linear-gradient(140deg, var(--d-blue), var(--d-cyan));
	font-weight: 800;
	font-size: 15px;
}

#novin-applicant-dashboard .nsa-d__brand-text { font-weight: 700; font-size: 14.5px; }

#novin-applicant-dashboard .nsa-d__page {
	flex: 1;
	margin: 0;
	padding-inline-start: 16px;
	border-inline-start: 1px solid rgba(255, 255, 255, .16);
	font-size: 15px;
	font-weight: 600;
	opacity: .92;
}

#novin-applicant-dashboard .nsa-d__user {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: none;
}

#novin-applicant-dashboard .nsa-d__ref {
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	font-size: 12px;
	letter-spacing: .04em;
}

#novin-applicant-dashboard .nsa-d__avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	background: var(--d-cyan);
	color: var(--d-dark);
	font-weight: 800;
}

#novin-applicant-dashboard .nsa-d__name { font-size: 13.5px; }

#novin-applicant-dashboard .nsa-d__burger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 40px;
	height: 40px;
	padding: 0 9px;
	border: 0;
	border-radius: 9px;
	background: rgba(255, 255, 255, .12);
	cursor: pointer;
}

#novin-applicant-dashboard .nsa-d__burger span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: #fff;
}

/* ============================================================== layout */

#novin-applicant-dashboard .nsa-d__layout {
	display: grid;
	grid-template-columns: var(--d-nav) minmax(0, 1fr);
	align-items: start;
	min-height: 560px;
}

#novin-applicant-dashboard .nsa-d__nav {
	display: flex;
	flex-direction: column;
	gap: 18px;
	padding: 18px 14px;
	background: var(--d-surface);
	border-inline-start: 1px solid var(--d-line);
	min-height: 100%;
}

#novin-applicant-dashboard .nsa-d__nav-list {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

#novin-applicant-dashboard .nsa-d__nav-link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 10px 13px;
	border-radius: var(--d-radius-sm);
	color: var(--d-muted);
	font-size: 14px;
	font-weight: 600;
	transition: background .15s ease, color .15s ease;
}

#novin-applicant-dashboard .nsa-d__nav-link:hover { background: var(--d-wash); color: var(--d-navy); }

#novin-applicant-dashboard .nsa-d__nav-link.is-active {
	background: var(--d-navy);
	color: #fff;
}

#novin-applicant-dashboard .nsa-d__nav-count {
	min-width: 22px;
	padding: 0 6px;
	border-radius: 999px;
	background: var(--d-wash);
	color: var(--d-blue);
	font-style: normal;
	font-size: 11.5px;
	font-weight: 800;
	text-align: center;
}

#novin-applicant-dashboard .nsa-d__nav-link.is-active .nsa-d__nav-count {
	background: rgba(255, 255, 255, .18);
	color: #fff;
}

#novin-applicant-dashboard .nsa-d__nav-foot {
	margin-top: auto;
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding-top: 14px;
	border-top: 1px solid var(--d-line);
}

#novin-applicant-dashboard .nsa-d__logout {
	text-align: center;
	font-size: 12.5px;
	color: var(--d-muted);
}

#novin-applicant-dashboard .nsa-d__logout:hover { color: var(--d-red); }

#novin-applicant-dashboard .nsa-d__main {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

#novin-applicant-dashboard .nsa-d__scrim { display: none; }

/* =============================================================== hero */

#novin-applicant-dashboard .nsa-d-hero { margin-bottom: 2px; }

#novin-applicant-dashboard .nsa-d-hero__title {
	margin: 0 0 3px;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--d-navy);
	line-height: 1.6;
}

#novin-applicant-dashboard .nsa-d-hero__lede {
	margin: 0;
	color: var(--d-muted);
	font-size: .93rem;
}

#novin-applicant-dashboard .nsa-d-section { margin-bottom: 2px; }

#novin-applicant-dashboard .nsa-d-section__title {
	margin: 0 0 3px;
	font-size: 1.28rem;
	font-weight: 800;
	color: var(--d-navy);
}

#novin-applicant-dashboard .nsa-d-section__lede {
	margin: 0;
	color: var(--d-muted);
	font-size: .9rem;
}

/* ======================================================== next action */

/*
 * The one gradient on the page. It is here because this is the single element
 * the applicant should see first, and everything else stays flat so that it
 * does.
 */
#novin-applicant-dashboard .nsa-d-next {
	position: relative;
	padding: 20px 22px;
	border-radius: var(--d-radius);
	background: linear-gradient(135deg, var(--d-navy) 0%, var(--d-dark) 55%, var(--d-blue) 160%);
	color: #fff;
	box-shadow: var(--d-shadow);
	overflow: hidden;
}

#novin-applicant-dashboard .nsa-d-next::after {
	content: "";
	position: absolute;
	inset-block-start: -60px;
	inset-inline-end: -60px;
	width: 200px;
	height: 200px;
	border-radius: 50%;
	background: rgba(40, 194, 221, .14);
	pointer-events: none;
}

#novin-applicant-dashboard .nsa-d-next__eyebrow {
	display: block;
	font-size: 12px;
	letter-spacing: .05em;
	opacity: .72;
}

#novin-applicant-dashboard .nsa-d-next__title {
	margin: 4px 0 5px;
	font-size: 1.18rem;
	font-weight: 800;
}

#novin-applicant-dashboard .nsa-d-next__body {
	margin: 0 0 14px;
	font-size: .92rem;
	opacity: .88;
	max-width: 62ch;
}

#novin-applicant-dashboard .nsa-d-next--action { border-inline-start: 4px solid var(--d-gold); }
#novin-applicant-dashboard .nsa-d-next--good { border-inline-start: 4px solid var(--d-green); }

#novin-applicant-dashboard .nsa-d-next .nsa-d-btn--primary {
	background: #fff;
	color: var(--d-navy);
}

#novin-applicant-dashboard .nsa-d-next .nsa-d-btn--primary:hover { background: var(--d-cyan); color: var(--d-dark); }

/* ============================================================ metrics */

#novin-applicant-dashboard .nsa-d-metrics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 10px;
}

#novin-applicant-dashboard .nsa-d-metric {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 16px;
	border: 1px solid var(--d-line);
	border-radius: var(--d-radius-sm);
	background: var(--d-surface);
	transition: border-color .15s ease, transform .15s ease;
}

#novin-applicant-dashboard .nsa-d-metric:hover {
	border-color: var(--d-cyan);
	transform: translateY(-1px);
}

/* A card with nothing behind it recedes instead of shouting a zero. */
#novin-applicant-dashboard .nsa-d-metric.is-quiet { opacity: .55; }

#novin-applicant-dashboard .nsa-d-metric__label {
	font-size: 12.5px;
	color: var(--d-muted);
}

#novin-applicant-dashboard .nsa-d-metric__value {
	font-size: 1.02rem;
	font-weight: 800;
	color: var(--d-navy);
}

#novin-applicant-dashboard .nsa-d-metric__value--good { color: var(--d-green); }
#novin-applicant-dashboard .nsa-d-metric__value--action { color: var(--d-gold); }
#novin-applicant-dashboard .nsa-d-metric__value--waiting { color: var(--d-blue); }
#novin-applicant-dashboard .nsa-d-metric__value--stopped { color: var(--d-red); }

/* ============================================================== cards */

#novin-applicant-dashboard .nsa-d-card {
	border: 1px solid var(--d-line);
	border-radius: var(--d-radius);
	background: var(--d-surface);
	box-shadow: var(--d-shadow-sm);
	overflow: hidden;
}

#novin-applicant-dashboard .nsa-d-card__head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	padding: 15px 18px 0;
}

#novin-applicant-dashboard .nsa-d-card__title {
	margin: 0;
	font-size: 1rem;
	font-weight: 800;
	color: var(--d-navy);
}

#novin-applicant-dashboard .nsa-d-card__action {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--d-blue);
}

#novin-applicant-dashboard .nsa-d-card__action:hover { text-decoration: underline; }

#novin-applicant-dashboard .nsa-d-card__hint {
	margin: 3px 18px 0;
	font-size: 12.5px;
	color: var(--d-muted);
}

#novin-applicant-dashboard .nsa-d-card__body { padding: 14px 18px 18px; }

#novin-applicant-dashboard .nsa-d-split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 16px;
	align-items: start;
}

/* =============================================================== rows */

#novin-applicant-dashboard .nsa-d-row {
	display: flex;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px dashed var(--d-line);
	font-size: .92rem;
}

#novin-applicant-dashboard .nsa-d-row:last-child { border-bottom: 0; }

#novin-applicant-dashboard .nsa-d-row__label {
	flex: 0 0 40%;
	max-width: 40%;
	color: var(--d-muted);
	font-size: .86rem;
}

#novin-applicant-dashboard .nsa-d-row__value {
	flex: 1;
	min-width: 0;
	font-weight: 600;
	overflow-wrap: anywhere;
}

#novin-applicant-dashboard .nsa-d-muted { color: var(--d-muted); font-weight: 400; font-style: normal; }

/* ============================================================= badges */

#novin-applicant-dashboard .nsa-d-badge {
	display: inline-block;
	padding: 3px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	white-space: nowrap;
	background: #eef2f6;
	color: #5a6b7a;
}

#novin-applicant-dashboard .nsa-d-badge--good { background: #e6f6f1; color: #0c7a5f; }
#novin-applicant-dashboard .nsa-d-badge--done { background: #eaf1f6; color: var(--d-navy); }
#novin-applicant-dashboard .nsa-d-badge--waiting { background: var(--d-wash); color: var(--d-blue); }
#novin-applicant-dashboard .nsa-d-badge--action { background: #fdf4e3; color: #8a6413; }
#novin-applicant-dashboard .nsa-d-badge--stopped { background: #fdeced; color: #9c2f38; }

/* ============================================================== lists */

#novin-applicant-dashboard .nsa-d-list {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#novin-applicant-dashboard .nsa-d-item {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 13px 15px;
	border: 1px solid var(--d-line);
	border-radius: var(--d-radius-sm);
	background: var(--d-surface);
	transition: border-color .15s ease, background .15s ease;
}

#novin-applicant-dashboard a.nsa-d-item:hover {
	border-color: var(--d-cyan);
	background: var(--d-wash);
}

#novin-applicant-dashboard .nsa-d-item__main {
	display: flex;
	flex-direction: column;
	gap: 1px;
	min-width: 0;
}

#novin-applicant-dashboard .nsa-d-item__title {
	font-size: .96rem;
	font-weight: 700;
	color: var(--d-navy);
	overflow-wrap: anywhere;
}

#novin-applicant-dashboard .nsa-d-item__meta {
	font-size: 12.5px;
	color: var(--d-muted);
	overflow-wrap: anywhere;
}

#novin-applicant-dashboard .nsa-d-item__side {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: none;
	flex-wrap: wrap;
	justify-content: flex-end;
}

#novin-applicant-dashboard .nsa-d-item__go { font-size: 12.5px; color: var(--d-blue); font-weight: 600; }

#novin-applicant-dashboard .nsa-d-amount {
	font-size: .95rem;
	font-weight: 800;
	color: var(--d-navy);
	white-space: nowrap;
}

/* ============================================================ buttons */

#novin-applicant-dashboard .nsa-d-btn {
	display: inline-block;
	padding: 11px 22px;
	border: 0;
	border-radius: var(--d-radius-sm);
	background: var(--d-navy);
	color: #fff;
	font: inherit;
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
	transition: background .15s ease, transform .15s ease;
}

#novin-applicant-dashboard .nsa-d-btn:hover { background: var(--d-blue); color: #fff; }
#novin-applicant-dashboard .nsa-d-btn:active { transform: translateY(1px); }

#novin-applicant-dashboard .nsa-d-btn--ghost {
	background: transparent;
	border: 1px solid var(--d-line);
	color: var(--d-navy);
}

#novin-applicant-dashboard .nsa-d-btn--ghost:hover {
	background: var(--d-wash);
	border-color: var(--d-cyan);
	color: var(--d-navy);
}

#novin-applicant-dashboard .nsa-d-btn--small { padding: 7px 15px; font-size: 12.5px; }

#novin-applicant-dashboard .nsa-d-back { margin: 0; }

/* ============================================================= tasks */

#novin-applicant-dashboard .nsa-d-task {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 11px 0;
	border-bottom: 1px dashed var(--d-line);
}

#novin-applicant-dashboard .nsa-d-task:last-child { border-bottom: 0; }
#novin-applicant-dashboard .nsa-d-task strong { display: block; font-size: .93rem; color: var(--d-navy); }
#novin-applicant-dashboard .nsa-d-task span { font-size: 12.5px; color: var(--d-muted); }

/* ============================================================ offers */

#novin-applicant-dashboard .nsa-d-offers {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 12px;
}

#novin-applicant-dashboard .nsa-d-offer {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 15px;
	border: 1px solid var(--d-line);
	border-inline-start: 3px solid var(--d-cyan);
	border-radius: var(--d-radius-sm);
	background: var(--d-surface);
}

#novin-applicant-dashboard .nsa-d-offer h4 {
	margin: 0;
	font-size: .98rem;
	font-weight: 800;
	color: var(--d-navy);
}

#novin-applicant-dashboard .nsa-d-offer p {
	margin: 0;
	flex: 1;
	font-size: .85rem;
	color: var(--d-muted);
	line-height: 1.9;
}

#novin-applicant-dashboard .nsa-d-offer__state {
	font-size: 12px;
	font-weight: 700;
	color: var(--d-blue);
}

/* ========================================================== timeline */

#novin-applicant-dashboard .nsa-d-timeline {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

#novin-applicant-dashboard .nsa-d-timeline__day {
	margin: 0 0 7px;
	font-size: 12.5px;
	font-weight: 800;
	color: var(--d-muted);
}

#novin-applicant-dashboard .nsa-d-timeline__list {
	margin: 0;
	padding: 0 0 0 0;
	list-style: none;
	border-inline-start: 2px solid var(--d-line);
	padding-inline-start: 16px;
}

#novin-applicant-dashboard .nsa-d-timeline__item {
	position: relative;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	font-size: .9rem;
}

#novin-applicant-dashboard .nsa-d-timeline__dot {
	position: absolute;
	inset-inline-start: -21px;
	inset-block-start: 14px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--d-cyan);
	box-shadow: 0 0 0 3px var(--d-surface);
}

#novin-applicant-dashboard .nsa-d-timeline__text { flex: 1; overflow-wrap: anywhere; }

#novin-applicant-dashboard .nsa-d-timeline__time {
	flex: none;
	font-size: 12px;
	color: var(--d-muted);
	font-variant-numeric: tabular-nums;
}

/* ============================================================ states */

#novin-applicant-dashboard .nsa-d-empty {
	padding: 28px 16px;
	border: 1px dashed var(--d-line);
	border-radius: var(--d-radius-sm);
	background: var(--d-bg);
	text-align: center;
}

#novin-applicant-dashboard .nsa-d-empty p {
	margin: 0 0 12px;
	color: var(--d-muted);
	font-size: .92rem;
}

#novin-applicant-dashboard .nsa-d-note {
	margin: 12px 0 14px;
	padding: 11px 13px;
	border-radius: var(--d-radius-sm);
	background: var(--d-wash);
	border-inline-start: 3px solid var(--d-blue);
	font-size: .88rem;
}

#novin-applicant-dashboard .nsa-d-note--action {
	background: #fdf4e3;
	border-inline-start-color: var(--d-gold);
	color: #7a5a10;
}

#novin-applicant-dashboard .nsa-d-note--good {
	background: #e6f6f1;
	border-inline-start-color: var(--d-green);
	color: #0c7a5f;
}

#novin-applicant-dashboard .nsa-d-card-pay {
	display: flex;
	flex-direction: column;
	gap: 3px;
	margin: 12px 0;
	padding: 16px;
	border-radius: var(--d-radius-sm);
	background: linear-gradient(140deg, var(--d-navy), var(--d-dark));
	color: #fff;
}

#novin-applicant-dashboard .nsa-d-card-pay strong {
	font-size: 1.16rem;
	letter-spacing: .1em;
	font-variant-numeric: tabular-nums;
}

#novin-applicant-dashboard .nsa-d-card-pay span { font-size: 12.5px; opacity: .8; }

#novin-applicant-dashboard .nsa-d-error {
	padding: 14px;
	border: 1px solid #f2d6d8;
	border-radius: var(--d-radius-sm);
	background: #fdf6f6;
	color: #9c2f38;
	text-align: center;
}

#novin-applicant-dashboard .nsa-d-skeleton {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

#novin-applicant-dashboard .nsa-d-skeleton span {
	display: block;
	height: 46px;
	border-radius: var(--d-radius-sm);
	background: linear-gradient(90deg, #eef3f7 25%, #e2eaf1 37%, #eef3f7 63%);
	background-size: 400% 100%;
	animation: nsa-d-shimmer 1.3s ease-in-out infinite;
}

@keyframes nsa-d-shimmer {
	0%   { background-position: 100% 50%; }
	100% { background-position: 0 50%; }
}

/* ============================================================== forms */

#novin-applicant-dashboard .nsa-d-form {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 13px;
}

#novin-applicant-dashboard .nsa-d-field { display: flex; flex-direction: column; gap: 5px; }

#novin-applicant-dashboard .nsa-d-field label {
	font-size: .86rem;
	font-weight: 700;
	color: var(--d-muted);
}

#novin-applicant-dashboard .nsa-d-field input {
	width: 100%;
	padding: 11px 13px;
	border: 1px solid var(--d-line);
	border-radius: var(--d-radius-sm);
	background: var(--d-bg);
	color: var(--d-text);
	font: inherit;
	font-size: .93rem;
}

#novin-applicant-dashboard .nsa-d-field input:focus { border-color: var(--d-cyan); background: #fff; }
#novin-applicant-dashboard .nsa-d-field.is-invalid input { border-color: var(--d-red); background: #fdf7f7; }

#novin-applicant-dashboard .nsa-d-field__error {
	margin: 0;
	font-size: .8rem;
	color: var(--d-red);
}

#novin-applicant-dashboard .nsa-d-form button { grid-column: 1 / -1; justify-self: start; }

#novin-applicant-dashboard .nsa-d-form__status {
	grid-column: 1 / -1;
	margin: 0;
	padding: 10px 13px;
	border-radius: var(--d-radius-sm);
	background: #e6f6f1;
	color: #0c7a5f;
	font-size: .88rem;
}

#novin-applicant-dashboard .nsa-d-form__status.is-error { background: #fdeced; color: #9c2f38; }

/* ============================================================ filters */

#novin-applicant-dashboard .nsa-d-filters { min-width: 0; }

/*
 * The chip row scrolls inside itself. Letting it push the page wide is how a
 * phone ends up scrolling sideways on every screen, not just this one.
 */
#novin-applicant-dashboard .nsa-d-filters__track {
	display: flex;
	gap: 7px;
	overflow-x: auto;
	padding-bottom: 3px;
	scrollbar-width: none;
}

#novin-applicant-dashboard .nsa-d-filters__track::-webkit-scrollbar { display: none; }

#novin-applicant-dashboard .nsa-d-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	padding: 8px 15px;
	border: 1px solid var(--d-line);
	border-radius: 999px;
	background: var(--d-surface);
	color: var(--d-muted);
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}

#novin-applicant-dashboard .nsa-d-chip:hover { border-color: var(--d-cyan); color: var(--d-navy); }

#novin-applicant-dashboard .nsa-d-chip.is-active {
	background: var(--d-navy);
	border-color: var(--d-navy);
	color: #fff;
}

#novin-applicant-dashboard .nsa-d-chip em {
	font-style: normal;
	font-size: 11.5px;
	font-weight: 800;
	opacity: .7;
}

/* ======================================================= payment step */

#novin-applicant-dashboard .nsa-d-pay { margin-top: 12px; }

#novin-applicant-dashboard .nsa-d-amount-box {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
	padding: 13px 15px;
	border: 1px solid var(--d-line);
	border-radius: var(--d-radius-sm);
	background: var(--d-bg);
}

#novin-applicant-dashboard .nsa-d-amount-box span { font-size: .88rem; color: var(--d-muted); }

#novin-applicant-dashboard .nsa-d-amount-box strong {
	font-size: 1.25rem;
	font-weight: 800;
	color: var(--d-blue);
}

#novin-applicant-dashboard .nsa-d-card-pay__label {
	font-size: 12px;
	letter-spacing: .04em;
	opacity: .72;
}

#novin-applicant-dashboard .nsa-d-card-pay__bank { font-size: .95rem; font-weight: 700; opacity: 1; }

#novin-applicant-dashboard .nsa-d-card-pay__sheba code {
	padding: 2px 7px;
	border-radius: 5px;
	background: rgba(255, 255, 255, .14);
	font-size: .8rem;
}

#novin-applicant-dashboard .nsa-d-copy {
	align-self: flex-start;
	margin-top: 10px;
	padding: 8px 17px;
	border: 1px solid rgba(255, 255, 255, .34);
	border-radius: 999px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font: inherit;
	font-size: .84rem;
	font-weight: 700;
	cursor: pointer;
}

#novin-applicant-dashboard .nsa-d-copy:hover { background: rgba(255, 255, 255, .2); }
#novin-applicant-dashboard .nsa-d-copy.is-copied { background: var(--d-green); border-color: var(--d-green); }

#novin-applicant-dashboard .nsa-d-privacy {
	margin: 10px 0 0;
	padding: 10px 12px;
	border-radius: var(--d-radius-sm);
	background: var(--d-bg);
	font-size: .8rem;
	line-height: 1.9;
	color: var(--d-muted);
}

/* ------------------------------------------------------ file control */

#novin-applicant-dashboard .nsa-d-field--wide { grid-column: 1 / -1; }

#novin-applicant-dashboard .nsa-d-file {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	overflow: hidden;
}

#novin-applicant-dashboard .nsa-d-file-label {
	display: inline-block;
	padding: 11px 22px;
	border: 1px dashed #b9cfdc;
	border-radius: var(--d-radius-sm);
	background: var(--d-wash);
	color: var(--d-navy);
	font-size: .9rem;
	font-weight: 700;
	cursor: pointer;
	text-align: center;
}

#novin-applicant-dashboard .nsa-d-file-label:hover { border-color: var(--d-cyan); }

#novin-applicant-dashboard .nsa-d-file:focus-visible + .nsa-d-file-label {
	outline: 2px solid var(--d-cyan);
	outline-offset: 2px;
}

/* Long filenames truncate rather than widen the card. */
#novin-applicant-dashboard .nsa-d-file-name {
	display: block;
	margin-top: 6px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: .84rem;
	color: var(--d-blue);
	direction: ltr;
	text-align: start;
}

#novin-applicant-dashboard .nsa-d-field--file.is-invalid .nsa-d-file-label {
	border-color: var(--d-red);
	background: #fdf7f7;
}

#novin-applicant-dashboard .nsa-d-receipt { margin-top: 14px; }
#novin-applicant-dashboard .nsa-d-receipt .nsa-d-field { margin-bottom: 12px; }

#novin-applicant-dashboard .nsa-d-upload .nsa-d-form { margin-bottom: 12px; }

/* ============================================================ points */

#novin-applicant-dashboard .nsa-d-points {
	margin: 0;
	padding: 0;
	list-style: none;
	display: flex;
	flex-direction: column;
	gap: 7px;
}

#novin-applicant-dashboard .nsa-d-points li {
	position: relative;
	padding-inline-start: 18px;
	font-size: .92rem;
}

#novin-applicant-dashboard .nsa-d-points li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	inset-block-start: 13px;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--d-cyan);
}

#novin-applicant-dashboard .nsa-d-points--good li::before { background: var(--d-green); }
#novin-applicant-dashboard .nsa-d-points--action li::before { background: var(--d-gold); }

/* ====================================================== embedded work */

/*
 * The booking widget, the studio builder and the analysis report each arrive
 * with their own shell and their own stylesheet. They sit in a bare wrapper
 * rather than inside a dashboard card — nesting one bordered panel inside
 * another is how a page turns into a stack of boxes — and the wrapper only
 * neutralises the outer margins those components assume.
 */
#novin-applicant-dashboard .nsa-d-embed > .nsa-cb,
#novin-applicant-dashboard .nsa-d-embed > .nsa-wrap {
	margin: 0;
	max-width: none;
}

#novin-applicant-dashboard .nsa-d-card--report .nsa-d-card__body { padding: 6px; }

#novin-applicant-dashboard .nsa-analysis-report { max-width: none; }

/* The studio builder brings the public form's wrapper with it. */
#novin-applicant-dashboard .nsa-d-card .nsa-wrap { max-width: none; margin: 0; padding: 0; }

#novin-applicant-dashboard .nsa-d-offer.is-suggested {
	border-inline-start-color: var(--d-gold);
	background: linear-gradient(180deg, #fffdf8 0%, var(--d-surface) 60%);
}

#novin-applicant-dashboard .nsa-d-offer__flag {
	align-self: flex-start;
	padding: 2px 10px;
	border-radius: 999px;
	background: #fdf4e3;
	color: #8a6413;
	font-size: 11.5px;
	font-weight: 800;
}

/* ====================================================== the auth card */

/* The signed-out screen has no shell around it, so the root supplies the page
 * padding the grid would otherwise have provided. */
#novin-applicant-dashboard.nsa-d--auth {
	display: block;
	padding: 32px 16px 56px;
	background: var(--d-bg);
}

#novin-applicant-dashboard .nsa-d-auth {
	max-width: 460px;
	margin: 0 auto;
	background: var(--d-surface);
	border: 1px solid var(--d-line);
	border-radius: var(--d-radius);
	box-shadow: 0 18px 44px rgba(7, 57, 86, .08);
	overflow: hidden;
}

#novin-applicant-dashboard .nsa-d-auth__head {
	padding: 26px 24px 20px;
	background: var(--d-navy);
	color: #fff;
}

#novin-applicant-dashboard .nsa-d-auth__head h2 { margin: 0 0 6px; font-size: 1.18rem; color: #fff; }
#novin-applicant-dashboard .nsa-d-auth__head p { margin: 0; font-size: .86rem; line-height: 2; opacity: .78; }

#novin-applicant-dashboard .nsa-d-auth__tabs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	border-bottom: 1px solid var(--d-line);
}

#novin-applicant-dashboard .nsa-d-auth__tabs button {
	padding: 14px 8px;
	border: 0;
	border-bottom: 2px solid transparent;
	background: transparent;
	color: var(--d-muted);
	font: inherit;
	font-size: .85rem;
	line-height: 1.7;
	cursor: pointer;
}

#novin-applicant-dashboard .nsa-d-auth__tabs button[aria-selected="true"] {
	color: var(--d-navy);
	border-bottom-color: var(--d-cyan);
	font-weight: 700;
}

#novin-applicant-dashboard .nsa-d-auth__pane { padding: 22px 24px 26px; }
#novin-applicant-dashboard .nsa-d-auth__pane[hidden] { display: none; }

#novin-applicant-dashboard .nsa-d-auth__intro {
	margin: 0 0 18px;
	font-size: .86rem;
	line-height: 2.1;
	color: var(--d-muted);
}

#novin-applicant-dashboard .nsa-d-auth__form { display: flex; flex-direction: column; gap: 14px; }
#novin-applicant-dashboard .nsa-d-auth__form button[type="submit"] { width: 100%; justify-content: center; }

#novin-applicant-dashboard .nsa-d-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: .85rem;
	color: var(--d-muted);
	cursor: pointer;
}

#novin-applicant-dashboard .nsa-d-checkbox input { width: 16px; height: 16px; accent-color: var(--d-cyan); }

#novin-applicant-dashboard .nsa-d-auth__link { margin: 0; text-align: center; font-size: .82rem; }
#novin-applicant-dashboard .nsa-d-auth__link a { color: var(--d-blue); }

#novin-applicant-dashboard .nsa-d-auth__foot {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	padding: 16px 24px;
	border-top: 1px solid var(--d-line);
	background: var(--d-bg);
	font-size: .82rem;
	color: var(--d-muted);
}

#novin-applicant-dashboard .nsa-d-auth__foot a { color: var(--d-blue); font-weight: 700; }

/* =============================================================== chat */

#novin-applicant-dashboard .nsa-d-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

#novin-applicant-dashboard .nsa-d-chat {
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

#novin-applicant-dashboard .nsa-d-chat__log {
	display: flex;
	flex-direction: column;
	gap: 10px;
	min-height: 300px;
	max-height: 52vh;
	overflow-y: auto;
	padding: 18px;
	background: var(--d-bg);
}

#novin-applicant-dashboard .nsa-d-chat__msg { max-width: 84%; }
#novin-applicant-dashboard .nsa-d-chat__msg--user { align-self: flex-start; }
#novin-applicant-dashboard .nsa-d-chat__msg--bot { align-self: flex-end; }

#novin-applicant-dashboard .nsa-d-chat__bubble {
	padding: 11px 14px;
	border-radius: 14px;
	white-space: pre-wrap;
	word-break: break-word;
	font-size: .93rem;
	line-height: 2;
}

#novin-applicant-dashboard .nsa-d-chat__msg--user .nsa-d-chat__bubble {
	background: var(--d-navy);
	color: #fff;
	border-end-start-radius: 5px;
}

/* The assistant speaks on white; the applicant is the coloured one. */
#novin-applicant-dashboard .nsa-d-chat__msg--bot .nsa-d-chat__bubble {
	background: var(--d-surface);
	border: 1px solid var(--d-line);
	border-end-end-radius: 5px;
}

#novin-applicant-dashboard .nsa-d-chat__msg.is-pending .nsa-d-chat__bubble { color: var(--d-muted); }

#novin-applicant-dashboard .nsa-d-chat__msg.is-error .nsa-d-chat__bubble {
	border-color: #f0d8d8;
	background: #fdf6f6;
	color: #9c2f38;
}

/* Sources are part of the answer: the assistant may only say what it can cite,
 * so showing what it cited is how the reader checks it. */
#novin-applicant-dashboard .nsa-d-chat__sources {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	margin-top: 7px;
}

#novin-applicant-dashboard .nsa-d-chat__sources a {
	padding: 3px 9px;
	border: 1px solid var(--d-line);
	border-radius: 7px;
	background: var(--d-surface);
	color: var(--d-blue);
	font-size: 11.5px;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#novin-applicant-dashboard .nsa-d-chat__prompts {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	padding: 11px 14px 0;
	scrollbar-width: none;
}

#novin-applicant-dashboard .nsa-d-chat__prompts::-webkit-scrollbar { display: none; }
#novin-applicant-dashboard .nsa-d-chat__prompts .nsa-d-chip { border-style: dashed; cursor: pointer; }

#novin-applicant-dashboard .nsa-d-chat__form {
	display: flex;
	align-items: flex-end;
	gap: 8px;
	padding: 12px 14px;
	border-top: 1px solid var(--d-line);
	background: var(--d-surface);
}

#novin-applicant-dashboard .nsa-d-chat__form textarea {
	flex: 1;
	min-width: 0;
	max-height: 110px;
	padding: 11px 13px;
	border: 1px solid var(--d-line);
	border-radius: 12px;
	background: var(--d-bg);
	color: var(--d-text);
	font: inherit;
	font-size: .93rem;
	line-height: 1.9;
	resize: none;
}

#novin-applicant-dashboard .nsa-d-chat__form textarea:focus { border-color: var(--d-cyan); background: #fff; }
#novin-applicant-dashboard .nsa-d-chat__form button { flex: none; }

/* ========================================================= responsive */

@media (max-width: 1024px) {
	#novin-applicant-dashboard { --d-nav: 210px; }
	#novin-applicant-dashboard .nsa-d__main { padding: 18px; }
}

@media (max-width: 860px) {
	#novin-applicant-dashboard { border-radius: 0; }

	#novin-applicant-dashboard .nsa-d__burger { display: flex; }
	#novin-applicant-dashboard .nsa-d__page { display: none; }
	#novin-applicant-dashboard .nsa-d__name { display: none; }

	#novin-applicant-dashboard .nsa-d__layout { grid-template-columns: minmax(0, 1fr); }

	/* The sidebar becomes a drawer rather than collapsing into the flow: a
	 * ten-item menu above the content pushes the actual page off-screen. */
	#novin-applicant-dashboard .nsa-d__nav {
		position: fixed;
		inset-block: 0;
		inset-inline-end: 0;
		z-index: 100000;
		width: min(280px, 84vw);
		transform: translateX(100%);
		transition: transform .22s ease;
		box-shadow: -18px 0 46px rgba(7, 57, 86, .18);
		overflow-y: auto;
	}

	#novin-applicant-dashboard.is-nav-open .nsa-d__nav { transform: translateX(0); }

	#novin-applicant-dashboard.is-nav-open .nsa-d__scrim {
		display: block;
		position: fixed;
		inset: 0;
		z-index: 99999;
		background: rgba(3, 40, 63, .45);
	}

	/* The page behind the drawer must not scroll. Without this, dragging on the
	 * overlay scrolls the content underneath and the drawer appears stuck. */
	body.nsa-d-locked { overflow: hidden; }

	/* Touch targets. */
	#novin-applicant-dashboard .nsa-d__nav-link { padding: 13px 14px; }
	#novin-applicant-dashboard .nsa-d-btn { padding: 13px 22px; min-height: 44px; }
	#novin-applicant-dashboard .nsa-d-btn--small { min-height: 40px; }
}

@media (max-width: 600px) {
	#novin-applicant-dashboard { font-size: 14.5px; }
	#novin-applicant-dashboard .nsa-d__main { padding: 14px; gap: 13px; }
	#novin-applicant-dashboard .nsa-d-split { grid-template-columns: 1fr; }
	#novin-applicant-dashboard .nsa-d-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#novin-applicant-dashboard .nsa-d-offers { grid-template-columns: 1fr; }
	#novin-applicant-dashboard .nsa-d-form { grid-template-columns: 1fr; }
	#novin-applicant-dashboard .nsa-d-hero__title { font-size: 1.3rem; }

	/* Rows and list items stack, so a long order number never forces the page
	 * sideways. */
	#novin-applicant-dashboard .nsa-d-row { flex-direction: column; gap: 1px; }
	#novin-applicant-dashboard .nsa-d-row__label { flex: none; max-width: none; }

	#novin-applicant-dashboard .nsa-d-item { flex-direction: column; align-items: stretch; gap: 9px; }
	#novin-applicant-dashboard .nsa-d-item__side { justify-content: space-between; }

	#novin-applicant-dashboard .nsa-d-task { flex-direction: column; align-items: stretch; gap: 8px; }
	#novin-applicant-dashboard .nsa-d-btn { width: 100%; }
	#novin-applicant-dashboard .nsa-d-card-pay strong { font-size: 1.02rem; letter-spacing: .06em; }

	/* The chat takes the screen on a phone; a 300px log inside a scrolling page
	 * is two scroll areas fighting each other. */
	#novin-applicant-dashboard .nsa-d-chat__log { max-height: 58vh; min-height: 240px; padding: 12px; }
	#novin-applicant-dashboard .nsa-d-chat__msg { max-width: 92%; }
	#novin-applicant-dashboard .nsa-d-chat__form button { width: auto; padding: 12px 18px; }
}

@media (max-width: 390px) {
	#novin-applicant-dashboard .nsa-d-metrics { grid-template-columns: 1fr; }
	#novin-applicant-dashboard .nsa-d__ref { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	#novin-applicant-dashboard .nsa-d__nav,
	#novin-applicant-dashboard .nsa-d-metric,
	#novin-applicant-dashboard .nsa-d-btn,
	#novin-applicant-dashboard .nsa-d-item { transition: none; }

	#novin-applicant-dashboard .nsa-d-skeleton span { animation: none; }
	#novin-applicant-dashboard .nsa-d-metric:hover { transform: none; }
}
