/*
 * Noakhali Cricket — reusable components (modern admin UI refresh).
 * Button, Field, Select, SegmentedControl, SectionCard, ProgressBar,
 * Chips, Toast, ConfirmModal.
 */

/* ---------- Button ---------- */

.nc-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 44px;
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: var(--nc-radius-sm);
	font-size: 14px;
	font-weight: 600;
	letter-spacing: -0.005em;
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
	user-select: none;
	position: relative;
}

.nc-btn:hover {
	text-decoration: none;
}

.nc-btn:active {
	transform: translateY(0.5px);
}

.nc-btn--primary {
	background: linear-gradient(180deg, var(--nc-primary) 0%, var(--nc-primary-600) 100%);
	color: var(--nc-on-primary);
	box-shadow: 0 2px 6px -2px rgba(5, 150, 105, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.nc-btn--primary:hover,
.nc-btn--primary:focus-visible,
.nc-btn--primary:active,
.nc-btn--primary:focus {
	background: linear-gradient(180deg, #34d399 0%, var(--nc-primary) 100%);
	box-shadow: 0 4px 10px -4px rgba(5, 150, 105, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
	color: var(--nc-on-primary);
}

.nc-btn--secondary {
	background: var(--nc-surface);
	border-color: var(--nc-border-strong);
	color: var(--nc-text);
	box-shadow: var(--nc-shadow-xs);
}

.nc-btn--secondary:hover {
	background: var(--nc-surface-2);
	border-color: #b8c0d0;
	color: var(--nc-text-strong);
	box-shadow: var(--nc-shadow-sm);
}

.nc-btn--ghost {
	background: transparent;
	color: var(--nc-primary-600);
}

.nc-btn--ghost:hover {
	background: var(--nc-primary-50);
	color: var(--nc-primary);
}

.nc-btn--danger {
	background: var(--nc-danger);
	color: #ffffff;
	box-shadow: 0 2px 6px -2px rgba(220, 38, 38, 0.4);
}

.nc-btn--danger:hover {
	background: #ef4444;
	color: #ffffff;
}

.nc-btn:disabled {
	background-color: #ddd;
	color: #000;
	opacity: 0.55;
	cursor: not-allowed;
	box-shadow: none;
	background-image: none;
	transform: none !important;
}

.nc-btn:disabled:hover {
	color: #000;
}

/* Visible keyboard focus on every interactive control. */
.nc-btn:focus-visible,
.nc-review__edit:focus-visible,
.nc-toast__close:focus-visible,
.nc-year-tag__remove:focus-visible,
.nc-check input[type='checkbox']:focus-visible + label {
	outline: none;
	box-shadow: var(--nc-focus-ring);
}

.nc-btn--sm {
	min-height: 36px;
	padding: 7px 14px;
	font-size: 13px;
	border-radius: var(--nc-radius-sm);
}

/* ---------- FormField (label + control + help + error) ---------- */

.nc-field {
	display: grid;
	gap: var(--nc-space-1);
}

.nc-field__label {
	font-size: var(--nc-font-label);
	font-weight: 600;
	color: var(--nc-text-strong);
	letter-spacing: 0.005em;
	display: flex;
	align-items: baseline;
	gap: 4px;
}

.nc-field__req {
	color: var(--nc-danger);
	font-weight: 700;
	line-height: 1;
	transform: translateY(-1px);
}

/* Small inline status chip (e.g. the live age next to Date of birth). */
.nc-inline-chip {
	display: inline-flex;
	align-items: center;
	padding: 2px 8px;
	border: 1px solid var(--nc-primary-100);
	border-radius: 999px;
	background: var(--nc-primary-50);
	color: var(--nc-primary-600);
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	white-space: nowrap;
	transform: translateY(-1px);
}

.nc-field__control {
	width: 100%;
}

.nc-input,
.nc-select,
.nc-textarea {
	width: 100%;
	min-height: var(--nc-control-height);
	padding: 10px 14px;
	background: var(--nc-surface);
	border: 1.5px solid var(--nc-border);
	border-radius: var(--nc-radius-input);
	color: var(--nc-text-strong);
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.nc-textarea {
	min-height: 104px;
	padding: 12px 14px;
	line-height: 1.55;
}

.nc-input::placeholder,
.nc-textarea::placeholder {
	color: var(--nc-grey-400);
}

.nc-input:hover,
.nc-select:hover,
.nc-textarea:hover {
	border-color: var(--nc-border-strong);
}

.nc-input:focus,
.nc-select:focus,
.nc-textarea:focus {
	border-color: var(--nc-primary);
	box-shadow: var(--nc-focus-ring);
	outline: none;
	background-color: #ffffff;
}

.nc-input[aria-invalid="true"],
.nc-select[aria-invalid="true"],
.nc-textarea[aria-invalid="true"] {
	border-color: var(--nc-danger);
	background-color: var(--nc-danger-50);
}

.nc-input[aria-invalid="true"]:focus,
.nc-select[aria-invalid="true"]:focus,
.nc-textarea[aria-invalid="true"]:focus {
	box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15);
}

.nc-input:disabled,
.nc-select:disabled,
.nc-textarea:disabled {
	background-color: var(--nc-surface-2);
	border-color: var(--nc-border);
	color: var(--nc-muted);
	cursor: not-allowed;
	opacity: 0.85;
}

/* Selects: appearance:none (set in nc-base.css) removes the native caret —
 * a right-aligned custom caret keeps the standard box style of the other
 * inputs; background-color state rules above never wash it out. */
.nc-select {
	padding-right: 38px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	background-size: 16px 16px;
}

/* Locked reference fields (e.g. the fixed district): unmistakably
 * not-editable — muted fill, muted text, no hover/focus affordances. */
.nc-input--locked,
.nc-input--locked:hover,
.nc-input--locked:focus {
	background: var(--nc-grey-100);
	border-color: var(--nc-border);
	color: var(--nc-grey-600);
	box-shadow: none;
	cursor: default;
}

.nc-field__help {
	color: var(--nc-muted);
	font-size: var(--nc-font-helper);
	line-height: 1.45;
}

.nc-field__help--ok {
	color: var(--nc-success);
	font-weight: 600;
}

/* Character counter for limited textareas (e.g. Additional Info). */
.nc-charcount {
	color: var(--nc-muted);
	font-size: var(--nc-font-helper);
	text-align: right;
	font-variant-numeric: tabular-nums;
}

.nc-charcount--limit {
	color: var(--nc-warning);
	font-weight: 600;
}

.nc-field__error {
	color: var(--nc-danger);
	font-size: var(--nc-font-helper);
	font-weight: 600;
	line-height: 1.4;
	padding-left: 2px;
}

.nc-muted {
	color: var(--nc-muted);
}

/* ---------- FieldGrid (1 col mobile, 2 cols from 640px, 3–4 cols from 1024px) ---------- */

.nc-field-grid {
	display: grid;
	gap: var(--nc-space-2);
}

.nc-field-grid + .nc-field-grid {
	margin-top: var(--nc-space-2);
}

@media (min-width: 640px) {
	.nc-field-grid--2,
	.nc-field-grid--3,
	.nc-field-grid--4 {
		grid-template-columns: 1fr 1fr;
		gap: var(--nc-space-2);
	}
}

@media (min-width: 1024px) {
	.nc-field-grid--3 {
		grid-template-columns: repeat(3, 1fr);
	}

	.nc-field-grid--4 {
		grid-template-columns: repeat(4, 1fr);
	}
}

/* ---------- Divider ---------- */

.nc-divider {
	height: 1px;
	margin: 22px 0;
	background: linear-gradient(to right, transparent, var(--nc-border) 10%, var(--nc-border) 90%, transparent);
	border: 0;
}

/* ---------- Career levels (predefined, multi-year selection) ---------- */

.nc-career-levels {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 16px;
}

.nc-career-level {
	display: grid;
	gap: 8px;
	padding: 14px;
	border: 1px solid var(--nc-border);
	border-radius: var(--nc-radius-card);
	background: var(--nc-surface-2);
	box-shadow: var(--nc-shadow-xs);
}

.nc-career-level__title {
	font-size: 13px;
	font-weight: 600;
	color: var(--nc-text-strong);
	line-height: 1.4;
}

.nc-career-level > .nc-field {
	margin: 0;
}

.nc-career-years {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nc-year-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 5px 8px 5px 12px;
	border-radius: 999px;
	background: var(--nc-primary-50);
	color: var(--nc-primary-600);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.4;
}

.nc-year-tag__remove {
	flex: none;
	width: 18px;
	height: 18px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: inherit;
	font-size: 15px;
	line-height: 1;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.nc-year-tag__remove:hover {
	color: var(--nc-danger);
	background: rgba(220, 38, 38, 0.12);
}

/* ---------- Checkbox row ---------- */

.nc-check {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 10px 12px;
	background: var(--nc-surface-2);
	border: 1px solid var(--nc-border);
	border-radius: 12px;
	margin-top: 0;
	transition: border-color 0.15s ease, background 0.15s ease;
}

.nc-check:hover {
	border-color: var(--nc-border-strong);
	background: var(--nc-surface);
}

.nc-check input[type='checkbox'] {
	flex: none;
	width: 20px;
	height: 20px;
	margin: 1px 0 0;
	accent-color: var(--nc-primary-600);
	cursor: pointer;
	border-radius: 6px;
}

.nc-check label {
	font-size: 13.5px;
	font-weight: 600;
	cursor: pointer;
	color: var(--nc-text-strong);
	line-height: 1.4;
}

.nc-check + .nc-check {
	margin-top: 10px;
}

/* ---------- Select (chevron) ---------- */

.nc-select {
	height: var(--nc-control-height);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23475569' d='M1.4.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 40px;
	cursor: pointer;
}

.nc-select option {
	color: var(--nc-text);
}

/* ---------- Switch (small on/off control) ---------- */

.nc-switch {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: var(--nc-space-1);
	cursor: pointer;
}

.nc-switch input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
}

.nc-switch__track {
	position: relative;
	flex: none;
	width: 36px;
	height: 20px;
	border-radius: 999px;
	background: var(--nc-grey-300);
	transition: background-color 0.15s ease;
}

.nc-switch__track::after {
	content: "";
	position: absolute;
	top: 2px;
	left: 2px;
	width: 16px;
	height: 16px;
	border-radius: 999px;
	background: #ffffff;
	box-shadow: var(--nc-shadow-xs);
	transition: transform 0.15s ease;
}

.nc-switch input:checked + .nc-switch__track {
	background: var(--nc-primary-600);
}

.nc-switch input:checked + .nc-switch__track::after {
	transform: translateX(16px);
}

.nc-switch input:focus-visible + .nc-switch__track {
	box-shadow: var(--nc-focus-ring);
}

.nc-switch__label {
	font-size: 13px;
	font-weight: 600;
	color: var(--nc-muted-strong);
}

/* ---------- SelectableChips ---------- */

.nc-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nc-chip {
	position: relative;
	display: inline-flex;
}

.nc-chip__input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.nc-chip__label {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 36px;
	padding: 7px 16px;
	border: 1px solid var(--nc-border-strong);
	border-radius: 999px;
	background: var(--nc-surface);
	color: var(--nc-muted-strong);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	user-select: none;
	transition: border-color 0.15s ease, background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nc-chip__input + .nc-chip__label:hover {
	border-color: var(--nc-grey-400);
	color: var(--nc-text);
}

.nc-chip__input:checked + .nc-chip__label {
	border-color: var(--nc-primary);
	background: var(--nc-primary-50);
	color: var(--nc-primary-600);
}

.nc-chip__input:focus-visible + .nc-chip__label {
	box-shadow: var(--nc-focus-ring);
}

/* ---------- SectionCard ---------- */

.nc-card {
	background: var(--nc-surface);
	border: 1px solid var(--nc-border);
	border-radius: var(--nc-radius-card);
	box-shadow: var(--nc-shadow-sm);
	overflow: hidden;
}

.nc-card + .nc-card {
	margin-top: var(--nc-gap);
}

.nc-card__header {
	display: grid;
	gap: 5px;
	padding: 20px 22px;
	border-bottom: 1px solid var(--nc-border);
	background:
		linear-gradient(180deg, rgba(250, 251, 254, 0.5) 0%, transparent 100%),
		var(--nc-surface);
}

/* SectionCard primitive (flat header): one-line muted description, no divider. */
.nc-card--bare .nc-card__header {
	border-bottom: 0;
	background: var(--nc-surface);
}

.nc-card__title {
	font-size: var(--nc-font-section-title);
	color: var(--nc-text-strong);
	line-height: 1.25;
}

.nc-card__title:focus-visible {
	outline: none;
	box-shadow: none;
}

.nc-card__subtitle {
	color: var(--nc-muted);
	font-size: 13.5px;
	line-height: 1.45;
}

.nc-card__body {
	display: grid;
	gap: var(--nc-gap);
	padding: 22px;
}

.nc-card__body > h3:first-child {
	margin-top: 0;
}

.nc-card__footer {
	padding: 18px 22px;
	border-top: 1px solid var(--nc-border);
	background: var(--nc-surface-2);
}

.nc-card__body h3 {
	font-size: 14px;
	color: var(--nc-text-strong);
	font-weight: 700;
	letter-spacing: 0.01em;
	padding-bottom: 4px;
	border-bottom: 1px dashed var(--nc-border);
}

/* ---------- ProgressBar ---------- */

.nc-progress {
	position: relative;
	width: 100%;
	height: 6px;
	background: var(--nc-bg-alt);
	border-radius: 999px;
	overflow: hidden;
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.05);
}

.nc-progress__fill {
	position: relative;
	height: 100%;
	background: linear-gradient(90deg, var(--nc-primary) 0%, var(--nc-primary-600) 100%);
	border-radius: 999px;
	transition: width 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.nc-progress__fill::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 50%);
	mix-blend-mode: soft-light;
}

.nc-progress__meta {
	color: var(--nc-muted-strong);
	font-size: 13px;
	font-weight: 600;
}

/* ---------- Review & Submit ---------- */

.nc-review__done {
	margin: 0 0 18px;
	padding: 14px 16px;
	border: 1px solid #bbf7d0;
	border-radius: 12px;
	background: var(--nc-success-50);
	color: var(--nc-success);
	font-size: 14px;
	font-weight: 600;
	display: flex;
	align-items: center;
	gap: 10px;
}

.nc-review__done::before {
	content: "";
	width: 22px;
	height: 22px;
	border-radius: 50%;
	flex: none;
	background:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 10.5l3 3 7-7' stroke='%2316a34a' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat,
		var(--nc-surface);
	box-shadow: inset 0 0 0 1px rgba(22, 163, 74, 0.25);
}

.nc-review__errors {
	margin-bottom: 18px;
	padding: 14px 16px;
	border: 1px solid var(--nc-danger-100);
	border-radius: 12px;
	background: var(--nc-danger-50);
}

.nc-review__errors-title {
	margin: 0 0 8px;
	color: var(--nc-danger);
	font-size: 13.5px;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 8px;
}

.nc-review__errors-title::before {
	content: "!";
	display: inline-grid;
	place-items: center;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--nc-danger);
	color: #ffffff;
	font-size: 12px;
	font-weight: 800;
	line-height: 1;
}

.nc-review__groups {
	display: grid;
	gap: 14px;
	margin-bottom: 18px;
}

@media (min-width: 768px) {
	.nc-review__groups {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 18px;
	}
}

.nc-review__group {
	padding: 16px 18px;
	border: 1px solid var(--nc-border);
	border-radius: var(--nc-radius);
	background: var(--nc-surface-2);
}

.nc-review__group-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-bottom: 10px;
	padding-bottom: 10px;
	border-bottom: 1px dashed var(--nc-border);
}

.nc-review__group-title {
	margin: 0;
	font-size: 14px;
	font-weight: 700;
	color: var(--nc-text-strong);
	letter-spacing: 0.005em;
}

.nc-review__group-tools {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.nc-review__group--incomplete {
	border-color: var(--nc-danger-100);
}

/* Per-card list of still-missing required fields (muted red). */
.nc-review__group-missing {
	margin: 10px 0 0;
	padding-left: 18px;
	list-style: disc;
	color: var(--nc-danger);
	font-size: var(--nc-font-helper);
	font-weight: 500;
	line-height: 1.5;
}

.nc-review__group-missing li + li {
	margin-top: 2px;
}

.nc-review__edit {
	padding: 6px 12px;
	border: 1px solid var(--nc-primary-100);
	background: var(--nc-primary-50);
	color: var(--nc-primary-600);
	font-size: 12.5px;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.15s ease;
	line-height: 1;
	min-height: 28px;
	display: inline-flex;
	align-items: center;
}

.nc-review__edit:hover {
	background: var(--nc-primary-600);
	border-color: var(--nc-primary-600);
	color: var(--nc-on-primary);
}

.nc-review__rows {
	margin: 0;
	display: grid;
	gap: 2px;
}

.nc-review__row {
	display: grid;
	grid-template-columns: 110px 1fr;
	gap: 14px;
	padding: 8px 0;
	font-size: 13.5px;
	border-bottom: 1px solid var(--nc-border);
}

.nc-review__row:last-child {
	border-bottom: 0;
}

.nc-review__row dt {
	color: var(--nc-muted);
	font-weight: 500;
	font-size: 12.5px;
	line-height: 1.4;
}

.nc-review__row dd {
	margin: 0;
	word-break: break-word;
	color: var(--nc-text-strong);
	font-weight: 500;
	line-height: 1.4;
}

@media (min-width: 520px) {
	.nc-review__row {
		grid-template-columns: 140px 1fr;
		gap: 18px;
	}
}

.nc-review__errors-list {
	display: grid;
	gap: 8px;
	margin: 0;
	padding-left: 0;
	list-style: none;
	font-size: 13.5px;
}

.nc-review__errors-list li {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 8px 10px;
}

.nc-review__errors-list li > span {
	flex: 1;
	min-width: 0;
}

.nc-review__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	padding: 16px 18px;
	background: var(--nc-surface-2);
	border-radius: 14px;
	border: 1px solid var(--nc-border);
}

.nc-review__hint {
	margin: 0;
	color: var(--nc-muted);
	font-size: 13px;
	line-height: 1.4;
	flex: 1 1 200px;
}

/* ---------- Home + read-only profile ---------- */

.nc-home__hero {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}

.nc-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 14px;
	background:
		linear-gradient(135deg, #e2e8f0, #cbd5e1);
	color: var(--nc-muted-strong);
	font-size: 14px;
	font-weight: 800;
	object-fit: cover;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

.nc-avatar--lg {
	width: 68px;
	height: 68px;
	border-radius: 20px;
	font-size: 20px;
}

.nc-avatar--lg[src] {
	padding: 0;
}

.nc-home__title {
	margin: 0;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--nc-text-strong);
}

.nc-home__text {
	margin: 0;
	color: var(--nc-muted-strong);
	font-size: 14.5px;
	line-height: 1.6;
}

.nc-home__list {
	margin: 4px 0 8px;
	padding-left: 18px;
	color: var(--nc-muted-strong);
	font-size: 14px;
	list-style: disc;
}

.nc-home__list li {
	padding-left: 4px;
	line-height: 1.5;
}

.nc-home__list li + li {
	margin-top: 2px;
}

.nc-home__greet {
	margin: 0 0 2px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--nc-muted-strong);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.nc-home__id {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 16px;
	margin-bottom: 18px;
	padding: 16px 18px;
	background: var(--nc-surface-2);
	border: 1px solid var(--nc-border);
	border-radius: var(--nc-radius-lg);
}

@media (max-width: 640px) {
	.nc-home__id {
		grid-template-columns: auto 1fr;
	}
	.nc-home__id .nc-status {
		grid-column: 1 / -1;
		justify-self: start;
	}
}

.nc-home__name {
	margin: 0;
	font-size: 17px;
	font-weight: 700;
	color: var(--nc-text-strong);
	line-height: 1.25;
}

.nc-home__meta {
	margin: 4px 0 0;
	color: var(--nc-muted);
	font-size: 13px;
	font-weight: 500;
}

.nc-home__name,
.nc-home__meta {
	min-width: 0;
	overflow-wrap: anywhere;
}

.nc-home__progress {
	margin-bottom: 6px;
}

.nc-home__pct {
	margin: 0 0 18px;
	color: var(--nc-muted-strong);
	font-size: 13px;
	font-weight: 600;
}

.nc-home__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
}

.nc-status {
	flex: none;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.01em;
	line-height: 1;
	min-height: 28px;
	display: inline-flex;
	align-items: center;
}

.nc-status--draft {
	background: var(--nc-surface-2);
	color: var(--nc-muted-strong);
	border: 1px solid var(--nc-border);
}

.nc-status--submitted {
	background: var(--nc-success);
	color: #fff;
	box-shadow: 0 2px 6px -2px rgba(22, 163, 74, 0.5);
}

/* Review card chips (step 9): section complete vs incomplete. */
.nc-status--ok {
	background: var(--nc-success);
	color: #ffffff;
	box-shadow: 0 2px 6px -2px rgba(22, 163, 74, 0.5);
}

.nc-status--warn {
	background: var(--nc-warning-50);
	color: var(--nc-warning);
	border: 1px solid #fde68a;
}

/* Manager review states (docs §2): pending review = attention/neutral,
   rejected = destructive. */
.nc-status--pending {
	background: var(--nc-info-50);
	color: var(--nc-info);
	border: 1px solid var(--nc-info);
}

.nc-status--rejected {
	background: var(--nc-danger);
	color: #ffffff;
	box-shadow: 0 2px 6px -2px rgba(220, 38, 38, 0.5);
}

/* Review feedback banner: the Manager's latest instruction / reason shown on
   the player panel (and as context on the manager review screen). Shared via
   nc-components.css so both panels render it identically. */
.nc-fb-banner {
	padding: 14px 16px;
	border-radius: var(--nc-radius-sm);
	margin-bottom: var(--nc-gap);
	border: 1px solid var(--nc-border);
	background: var(--nc-surface-2);
	color: var(--nc-text);
	font-size: 14px;
	line-height: 1.5;
}

.nc-fb-banner--warning {
	background: var(--nc-warning-50);
	border-color: #fde68a;
}

.nc-fb-banner--danger {
	background: var(--nc-danger-50);
	border-color: var(--nc-danger-100);
}

.nc-fb-banner__title {
	margin: 0 0 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--nc-text-strong);
}

.nc-fb-banner__note {
	margin: 0;
	white-space: pre-line;
}

/* ---------- Toast ---------- */

.nc-toasts {
	position: fixed;
	bottom: 20px;
	left: 50%;
	transform: translateX(-50%);
	display: grid;
	gap: 10px;
	width: min(92vw, 460px);
	z-index: 99999;
}

.nc-toast {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--nc-radius);
	background: var(--nc-text-strong);
	color: #ffffff;
	font-size: 13.5px;
	font-weight: 500;
	line-height: 1.4;
	box-shadow: var(--nc-shadow-lg);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.nc-toast::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.55);
	flex: none;
}

.nc-toast > span:first-of-type {
	flex: 1;
	min-width: 0;
}

.nc-toast--success {
	background: linear-gradient(180deg, #22c55e 0%, var(--nc-success) 100%);
}

.nc-toast--success::before { background: #bbf7d0; }

.nc-toast--error {
	background: linear-gradient(180deg, #ef4444 0%, var(--nc-danger) 100%);
}

.nc-toast--error::before { background: #fecaca; }

.nc-toast--info::before { background: #bfdbfe; }

.nc-toast__close {
	flex: none;
	min-height: 28px;
	min-width: 28px;
	border: 0;
	background: rgba(255, 255, 255, 0.1);
	color: inherit;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	border-radius: 8px;
	display: inline-grid;
	place-items: center;
}

.nc-toast__close:hover {
	background: rgba(255, 255, 255, 0.22);
}

/* ---------- ConfirmModal ---------- */

.nc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: grid;
	place-items: center;
	padding: 16px;
}

.nc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
}

.nc-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	display: grid;
	gap: 14px;
	padding: 22px;
	background: var(--nc-surface);
	border: 1px solid var(--nc-border);
	border-radius: var(--nc-radius-xl);
	box-shadow: var(--nc-shadow-lg);
	animation: ncFadeIn 0.18s ease both;
}

.nc-modal__title {
	font-size: 17px;
	font-weight: 700;
	color: var(--nc-text-strong);
	letter-spacing: -0.01em;
}

.nc-modal__text {
	color: var(--nc-muted-strong);
	font-size: 14px;
	line-height: 1.55;
}

.nc-modal__actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	padding-top: 6px;
}
