/**
 * NoRecoil Controller Diagnostic — public styles.
 * RTL-first, dark premium gaming UI, orange accent. Loaded only on plugin pages.
 *
 * @package NoRecoil\ControllerTest
 */

:root {
	--nrct-primary: #ff7a00;
	--nrct-primary-soft: rgba(255, 122, 0, 0.14);
	--nrct-bg: #0b0b0c;
	--nrct-panel: #121214;
	--nrct-panel-2: #18181b;
	--nrct-line: rgba(255, 255, 255, 0.08);
	--nrct-line-soft: rgba(255, 255, 255, 0.055);
	--nrct-text: #f4f4f5;
	--nrct-muted: #a1a1aa;
	--nrct-dim: #71717a;
	--nrct-ok: #34d399;
	--nrct-warn: #fbbf24;
	--nrct-bad: #f87171;
	--nrct-info: #7dd3fc;
	--nrct-radius: 18px;
	--nrct-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.nrct-root {
	direction: rtl;
	text-align: right;
	color: var(--nrct-text);
	font-family: Vazirmatn, Tahoma, "Segoe UI", sans-serif;
	line-height: 1.85;
	padding: 18px 0 46px;
}

.nrct-root *,
.nrct-root *::before,
.nrct-root *::after { box-sizing: border-box; }

.nrct-root .mono {
	font-family: var(--nrct-mono);
	font-variant-numeric: tabular-nums;
	direction: ltr;
	unicode-bidi: isolate;
}

.nrct-wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }

/* ------------------------------------------------------------------ hero */

.nrct-hero {
	position: relative;
	overflow: hidden;
	border: 1px solid var(--nrct-line);
	border-radius: 26px;
	padding: 34px 22px;
	margin-bottom: 20px;
	background: linear-gradient(160deg, #17171b, #0d0d10 60%, #101014);
}

.nrct-hero-media {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0.34;
}

.nrct-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(270deg, rgba(11, 11, 12, 0.96), rgba(11, 11, 12, 0.82) 45%, rgba(11, 11, 12, 0.4));
}

.nrct-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
	background-size: 48px 48px;
	opacity: 0.4;
	pointer-events: none;
}

.nrct-hero > * { position: relative; z-index: 2; }

.nrct-hero-glow {
	position: absolute;
	top: -120px;
	left: 50%;
	transform: translateX(-50%);
	width: 520px;
	height: 260px;
	background: radial-gradient(closest-side, rgba(255, 122, 0, 0.28), transparent);
	filter: blur(24px);
	z-index: 1;
}

.nrct-brandline {
	color: var(--nrct-primary);
	letter-spacing: 0.22em;
	text-transform: uppercase;
	font-size: 11px;
	margin: 0 0 10px;
}

.nrct-hero h1 {
	font-size: clamp(26px, 5vw, 46px);
	line-height: 1.32;
	margin: 0 0 12px;
	color: #fff;
	font-weight: 800;
	max-width: 720px;
}

.nrct-hero p { max-width: 620px; color: #d4d4d8; margin: 0 0 8px; }

/* ----------------------------------------------------------------- cards */

.nrct-card {
	background: var(--nrct-panel);
	border: 1px solid var(--nrct-line);
	border-radius: var(--nrct-radius);
	padding: 20px;
	margin-bottom: 16px;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nrct-kicker {
	color: var(--nrct-primary);
	font-size: 11px;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	margin: 0 0 4px;
	font-weight: 600;
}

.nrct-card h2 {
	font-size: 21px;
	margin: 0 0 6px;
	color: #fff;
	font-weight: 700;
	scroll-margin-top: 110px;
}

.nrct-card h3 { font-size: 15px; margin: 0; color: #fff; font-weight: 600; }

.nrct-desc,
.nrct-muted { color: var(--nrct-muted); font-size: 13px; margin: 0 0 14px; }

.nrct-fine { color: var(--nrct-dim); font-size: 11px; line-height: 1.9; margin: 8px 0 0; }

.nrct-privacy {
	border: 1px solid var(--nrct-line);
	background: rgba(255, 255, 255, 0.03);
	border-radius: 14px;
	padding: 12px 16px;
	color: var(--nrct-muted);
	font-size: 13px;
	margin: 0 0 14px;
}

.nrct-note {
	border-color: rgba(251, 191, 36, 0.24);
	background: rgba(251, 191, 36, 0.08);
	color: #fde68a;
	font-size: 13px;
}

/* ----------------------------------------------------------- pills/badges */

.nrct-pill {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	border-radius: 999px;
	padding: 3px 11px;
	font-size: 11px;
	background: rgba(255, 255, 255, 0.06);
	color: #d4d4d8;
	border: 1px solid var(--nrct-line);
	white-space: nowrap;
}

.nrct-pill-ok { background: rgba(52, 211, 153, 0.12); color: var(--nrct-ok); border-color: rgba(52, 211, 153, 0.26); }
.nrct-pill-warn { background: rgba(251, 191, 36, 0.12); color: var(--nrct-warn); border-color: rgba(251, 191, 36, 0.26); }
.nrct-pill-bad { background: rgba(248, 113, 113, 0.12); color: var(--nrct-bad); border-color: rgba(248, 113, 113, 0.26); }
.nrct-pill-nr { background: var(--nrct-primary-soft); color: var(--nrct-primary); border-color: rgba(255, 122, 0, 0.3); }

/* --------------------------------------------------------------- status */

.nrct-status-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-bottom: 14px;
}

.nrct-status-head strong { font-size: 15px; color: #fff; }

.nrct-status-head .nrct-btn-sm { margin-inline-start: auto; }

.nrct-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: #52525b;
	box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
	flex: none;
}

.nrct-dot.is-on {
	background: var(--nrct-ok);
	box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.16);
	animation: nrct-pulse 1.8s ease-in-out infinite;
}

@keyframes nrct-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.45; }
}

.nrct-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.nrct-statgrid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.nrct-stat {
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--nrct-line-soft);
	border-radius: 12px;
	padding: 10px 12px;
}

.nrct-stat span { display: block; font-size: 11px; color: var(--nrct-dim); }
.nrct-stat strong { font-size: 13px; color: #f4f4f5; font-weight: 500; }

/* -------------------------------------------------------------- prompt */

.nrct-prompt { text-align: center; padding: 46px 20px; position: relative; overflow: hidden; }

.nrct-prompt::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 44px 44px;
	opacity: 0.4;
}

.nrct-prompt > * { position: relative; z-index: 1; }

.nrct-prompt h2 { font-size: 24px; color: #fff; }

.nrct-prompt-icon {
	width: 78px;
	height: 78px;
	margin: 0 auto 16px;
	display: grid;
	place-items: center;
	font-size: 34px;
	border-radius: 20px;
	background: var(--nrct-primary-soft);
	border: 1px solid rgba(255, 122, 0, 0.3);
}

.nrct-prompt-chips { justify-content: center; margin-top: 18px; }

.nrct-alert {
	border-color: rgba(248, 113, 113, 0.3);
	background: rgba(248, 113, 113, 0.09);
	color: #fecaca;
}

.nrct-alert strong { display: block; font-size: 15px; margin-bottom: 4px; }
.nrct-alert p { margin: 0; font-size: 13px; color: #fecaca; }

/* ----------------------------------------------------------- controller */

.nrct-art {
	position: relative;
	overflow: hidden;
	background: linear-gradient(160deg, #17171b 0%, #0d0d10 55%, #101014 100%);
	padding: 0;
}

.nrct-art::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
	background-size: 46px 46px;
	opacity: 0.35;
	pointer-events: none;
}

.nrct-art-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	border-bottom: 1px solid var(--nrct-line-soft);
	position: relative;
	z-index: 2;
}

.nrct-art-head h3 { font-size: 16px; }
.nrct-art-head .nrct-muted { margin: 2px 0 0; font-size: 11px; }

.nrct-live-badge {
	font-size: 10px;
	letter-spacing: 0.2em;
	color: var(--nrct-primary);
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
}

.nrct-live-badge::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nrct-primary);
	animation: nrct-pulse 1.4s ease-in-out infinite;
}

.nrct-art-stage { position: relative; z-index: 2; padding: 8px 12px 16px; }

.nrct-pad { display: block; width: 100%; height: auto; max-width: 840px; margin: 0 auto; }

.nrct-part rect,
.nrct-dir rect,
.nrct-dir path,
.nrct-face circle:not(.nrct-face-halo) {
	fill: #14141a;
	stroke: rgba(255, 255, 255, 0.14);
	stroke-width: 1.4;
	transition: fill 0.09s linear, stroke 0.09s linear;
}

.nrct-part.is-on rect,
.nrct-dir.is-on rect,
.nrct-dir.is-on path,
.nrct-face.is-on circle:not(.nrct-face-halo) {
	fill: var(--nrct-primary);
	stroke: #ffb066;
}

.nrct-lbl, .nrct-mini, .nrct-glyph, .nrct-pct {
	font-family: Rajdhani, Vazirmatn, sans-serif;
	font-weight: 700;
	fill: #9a9aa4;
	pointer-events: none;
}

.nrct-lbl { font-size: 12px; }
.nrct-mini { font-size: 8px; }
.nrct-glyph { font-size: 21px; fill: #c4c4cc; }
.nrct-pct { font-size: 10px; font-family: var(--nrct-mono); }

.nrct-part.is-on .nrct-lbl,
.nrct-part.is-on .nrct-mini,
.nrct-face.is-on .nrct-glyph,
.nrct-face.is-on .nrct-lbl { fill: #0b0b0c; }

.nrct-trig.is-on .nrct-lbl { fill: #fff; }
.nrct-stick.is-on .nrct-knob circle:first-of-type { fill: var(--nrct-primary); stroke: #ffb066; }
.nrct-stick.is-on .nrct-knob-core { fill: #0b0b0c; }
.nrct-face.is-on .nrct-xlogo { stroke: #7bd44a; }
.nrct-knob { transition: transform 0.05s linear; }

/* ------------------------------------------------------------- identity */

.nrct-id-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

.nrct-conf {
	font-size: 12px;
	color: var(--nrct-muted);
	background: rgba(255, 255, 255, 0.06);
	padding: 2px 9px;
	border-radius: 999px;
}

.nrct-id-layout { display: grid; gap: 16px; grid-template-columns: 1fr; }

.nrct-id-grid {
	display: grid;
	gap: 8px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 0;
}

.nrct-field {
	background: rgba(0, 0, 0, 0.28);
	border: 1px solid var(--nrct-line-soft);
	border-radius: 12px;
	padding: 9px 11px;
}

.nrct-field dt { font-size: 11px; color: var(--nrct-dim); }
.nrct-field dd { margin: 3px 0 0; font-size: 12.5px; color: #f4f4f5; }

.nrct-sub { font-size: 11px; color: var(--nrct-dim); }

.nrct-est {
	font-style: normal;
	font-size: 9px;
	background: rgba(251, 191, 36, 0.16);
	color: var(--nrct-warn);
	border-radius: 4px;
	padding: 0 4px;
}

.nrct-swatch i {
	display: inline-block;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, 0.2);
	vertical-align: middle;
	margin-inline-end: 6px;
}

.nrct-signals {
	border: 1px solid var(--nrct-line);
	background: rgba(0, 0, 0, 0.3);
	border-radius: 16px;
	padding: 14px;
}

.nrct-signals h3 { margin-bottom: 10px; font-size: 14px; }

.nrct-signals ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 7px; }

.nrct-signals li { font-size: 12px; color: var(--nrct-muted); padding-inline-start: 15px; position: relative; line-height: 1.9; }

.nrct-signals li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 10px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #52525b;
}

.nrct-sig-ok::before { background: var(--nrct-ok); }
.nrct-sig-warn::before { background: var(--nrct-warn); }
.nrct-sig-bad::before { background: var(--nrct-bad); }

.nrct-fp {
	margin-top: 14px;
	border-top: 1px solid var(--nrct-line-soft);
	padding-top: 10px;
}

.nrct-fp code {
	display: block;
	font-size: 11px;
	color: #d4d4d8;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 8px;
	padding: 6px 8px;
	word-break: break-all;
	margin-bottom: 6px;
}

.nrct-link {
	background: none;
	border: 0;
	color: var(--nrct-primary);
	font-family: inherit;
	font-size: 11px;
	cursor: pointer;
	padding: 0;
}

.nrct-link:hover { text-decoration: underline; }

/* -------------------------------------------------------------- buttons */

.nrct-btngrid { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.nrct-btn-chip {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	border: 1px solid var(--nrct-line-soft);
	background: rgba(0, 0, 0, 0.28);
	border-radius: 12px;
	padding: 8px 11px;
	transition: background 0.1s linear, border-color 0.1s linear, box-shadow 0.1s linear;
}

.nrct-btn-chip.is-on {
	border-color: rgba(255, 122, 0, 0.55);
	background: var(--nrct-primary-soft);
	box-shadow: 0 0 18px -6px var(--nrct-primary);
}

.nrct-chip-label { font-size: 14px; font-weight: 600; color: #f4f4f5; display: block; }
.nrct-chip-idx { font-size: 10px; color: var(--nrct-dim); display: block; }
.nrct-btn-chip b { font-size: 11px; color: var(--nrct-muted); font-weight: 500; }
.nrct-btn-chip.is-on b { color: var(--nrct-primary); }

/* --------------------------------------------------------------- sticks */

.nrct-sticks, .nrct-trigs, .nrct-dzcols { display: grid; gap: 14px; grid-template-columns: 1fr; }

.nrct-stickpad, .nrct-trigpad, .nrct-dzcol {
	border: 1px solid var(--nrct-line);
	background: rgba(0, 0, 0, 0.3);
	border-radius: 16px;
	padding: 14px;
}

.nrct-stick-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }

.nrct-sticksvg { display: block; width: 100%; max-width: 240px; height: auto; margin: 0 auto; }

.nrct-kv { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0 0; }

.nrct-kvrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	background: rgba(255, 255, 255, 0.04);
	border-radius: 9px;
	padding: 6px 9px;
}

.nrct-kvrow dt { font-size: 11px; color: var(--nrct-dim); }
.nrct-kvrow dd { margin: 0; font-size: 12px; color: #e4e4e7; }

.nrct-postfix { display: grid; gap: 8px; grid-template-columns: 1fr; margin-top: 12px; }

.nrct-postbox {
	border: 1px solid rgba(255, 122, 0, 0.28);
	background: rgba(255, 122, 0, 0.08);
	border-radius: 12px;
	padding: 9px 12px;
}

.nrct-postbox p { margin: 0 0 3px; font-size: 11px; color: var(--nrct-muted); }
.nrct-postbox b { font-size: 13px; color: #fff; }

/* ------------------------------------------------------------ dead zone */

.nrct-col-title { margin: 0 0 10px; font-size: 13px; color: #d4d4d8; }

.nrct-meter { display: grid; grid-template-columns: 96px 1fr 42px; align-items: center; gap: 8px; margin-bottom: 9px; }
.nrct-meter-label { font-size: 11px; color: var(--nrct-dim); }
.nrct-meter-val { font-size: 11px; color: #e4e4e7; text-align: left; }

.nrct-meter i {
	display: block;
	height: 6px;
	border-radius: 999px;
	background: #27272a;
	overflow: hidden;
}

.nrct-meter i b { display: block; height: 100%; background: var(--nrct-primary); border-radius: 999px; transition: width 0.08s linear; }

/* ------------------------------------------------------------- triggers */

.nrct-trigbar {
	height: 96px;
	border-radius: 12px;
	background: #131318;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
	margin-bottom: 8px;
}

.nrct-trigbar span {
	display: block;
	width: 100%;
	height: 0;
	background: linear-gradient(180deg, rgba(255, 122, 0, 0.4), var(--nrct-primary));
	transition: height 0.07s linear;
}

.nrct-big { font-size: 27px; margin: 0; color: #fff; font-weight: 700; }

/* ----------------------------------------------------------------- dpad */

.nrct-dpad { display: grid; grid-template-columns: repeat(3, 56px); gap: 6px; justify-content: center; }

.nrct-dcell {
	height: 52px;
	display: grid;
	place-items: center;
	border-radius: 12px;
	background: rgba(255, 255, 255, 0.05);
	color: var(--nrct-dim);
	font-size: 16px;
	transition: background 0.09s linear, color 0.09s linear, box-shadow 0.09s linear;
}

.nrct-dcell.is-on {
	background: var(--nrct-primary);
	color: #0b0b0c;
	font-weight: 700;
	box-shadow: 0 0 18px -6px var(--nrct-primary);
}

.nrct-dcell-mid { font-size: 10px; background: rgba(0, 0, 0, 0.4); }

.nrct-dirchips { justify-content: center; margin-top: 14px; }

.nrct-dirchip.is-on {
	background: var(--nrct-primary-soft);
	color: var(--nrct-primary);
	border-color: rgba(255, 122, 0, 0.45);
}

/* ---------------------------------------------------------------- chips */

.nrct-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.nrct-chip {
	border: 1px solid var(--nrct-line);
	background: transparent;
	color: var(--nrct-muted);
	border-radius: 10px;
	padding: 6px 12px;
	font-size: 12px;
	cursor: pointer;
	font-family: inherit;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	transition: color 0.14s, border-color 0.14s, background 0.14s, transform 0.14s;
}

.nrct-chip:hover { color: #fff; border-color: rgba(255, 122, 0, 0.5); transform: translateY(-1px); }

.nrct-chip.is-on {
	background: var(--nrct-primary-soft);
	color: var(--nrct-primary);
	border-color: rgba(255, 122, 0, 0.45);
}

/* ------------------------------------------------------------- controls */

.nrct-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 0;
	border-radius: 12px;
	background: var(--nrct-primary);
	color: #0b0b0c;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	padding: 11px 18px;
	cursor: pointer;
	text-decoration: none;
	transition: filter 0.16s ease, transform 0.16s ease;
}

.nrct-btn:hover { filter: brightness(1.08); transform: translateY(-1px); }
.nrct-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.nrct-btn-ghost { background: rgba(255, 255, 255, 0.06); color: #f4f4f5; }
.nrct-btn-line { background: transparent; color: #f4f4f5; border: 1px solid var(--nrct-line); }
.nrct-btn-sm { font-size: 12px; padding: 7px 12px; border-radius: 10px; }

.nrct-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }

.nrct-check {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #d4d4d8;
	background: rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 8px 12px;
	cursor: pointer;
}

.nrct-check input { accent-color: var(--nrct-primary); }

/* -------------------------------------------------------------- monitor */

.nrct-monitor { display: grid; gap: 22px; grid-template-columns: 1fr; }
.nrct-mon-col h3 { margin-bottom: 10px; font-size: 13px; color: #d4d4d8; }

.nrct-mon-row { display: grid; grid-template-columns: 68px 1fr 58px; align-items: center; gap: 10px; font-size: 11px; margin-bottom: 6px; }
.nrct-mon-row span { color: var(--nrct-dim); }
.nrct-mon-row em { font-style: normal; color: #d4d4d8; text-align: left; }

.nrct-mon-track { display: block; height: 6px; border-radius: 999px; background: #27272a; position: relative; overflow: hidden; }
.nrct-mon-track b { position: absolute; top: 0; bottom: 0; left: 0; background: var(--nrct-primary); border-radius: 999px; }
.nrct-mon-track b.nrct-axis { top: 0; bottom: 0; }

/* ------------------------------------------------------------ drift fix */

.nrct-fix-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.nrct-fix-layout { display: grid; gap: 16px; grid-template-columns: 1fr; }

.nrct-fix-pads { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }

.nrct-mini {
	border: 1px solid var(--nrct-line);
	background: rgba(0, 0, 0, 0.3);
	border-radius: 14px;
	padding: 10px;
	text-align: center;
}

.nrct-mini h4 { margin: 0 0 6px; font-size: 12px; color: var(--nrct-muted); font-weight: 500; }
.nrct-mini svg { width: 100%; max-width: 190px; height: auto; }

.nrct-dot-red, .nrct-dot-orange { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.nrct-dot-red { background: #ef4444; }
.nrct-dot-orange { background: var(--nrct-primary); }

.nrct-bar { height: 6px; border-radius: 999px; background: #27272a; overflow: hidden; margin-top: 12px; }
.nrct-bar i { display: block; height: 100%; background: var(--nrct-primary); transition: width 0.12s linear; }

.nrct-fixgrid { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; }

.nrct-tune { display: grid; gap: 12px; grid-template-columns: 1fr; margin-top: 16px; }

.nrct-tune-col {
	border: 1px solid var(--nrct-line);
	background: rgba(0, 0, 0, 0.25);
	border-radius: 14px;
	padding: 13px;
}

.nrct-tune-col h4 { margin: 0 0 10px; font-size: 13px; color: #fff; }

.nrct-slider { display: block; font-size: 12px; color: var(--nrct-muted); margin-bottom: 12px; }
.nrct-slider span { display: flex; justify-content: space-between; margin-bottom: 6px; }
.nrct-slider b { color: #e4e4e7; font-weight: 500; }

.nrct-slider input[type="range"],
.nrct-drawer-body input[type="range"] {
	width: 100%;
	-webkit-appearance: none;
	appearance: none;
	height: 4px;
	border-radius: 999px;
	background: #27272a;
	outline: none;
}

.nrct-slider input[type="range"]::-webkit-slider-thumb,
.nrct-drawer-body input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 15px;
	height: 15px;
	border-radius: 50%;
	background: var(--nrct-primary);
	border: 2px solid #fff;
	cursor: pointer;
}

.nrct-slider input[type="range"]::-moz-range-thumb,
.nrct-drawer-body input[type="range"]::-moz-range-thumb {
	width: 15px;
	height: 15px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--nrct-primary);
	cursor: pointer;
}

/* ------------------------------------------------------------ auto test */

.nrct-steplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }

.nrct-steplist li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--nrct-muted); flex-wrap: wrap; }

.nrct-stepnum {
	width: 24px;
	height: 24px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	font-size: 11px;
	background: rgba(255, 255, 255, 0.08);
	color: var(--nrct-dim);
	flex: none;
}

.nrct-steptitle { min-width: 120px; }
.nrct-steplist li.is-active { color: #fff; }
.nrct-steplist li.is-active .nrct-stepnum { background: var(--nrct-primary); color: #0b0b0c; }
.nrct-steplist li.is-done .nrct-stepnum { background: rgba(52, 211, 153, 0.2); color: var(--nrct-ok); }

/* --------------------------------------------------------------- report */

.nrct-report { border-top: 1px solid var(--nrct-line); margin-top: 18px; padding-top: 18px; }

.nrct-report-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.nrct-rid { font-size: 18px; color: #fff; margin: 0; }
.nrct-score { text-align: left; }
.nrct-score b { font-size: 40px; color: #fff; display: block; line-height: 1; font-weight: 700; }
.nrct-score span { font-size: 12px; color: var(--nrct-dim); }

.nrct-idbox {
	border: 1px solid var(--nrct-line);
	background: rgba(0, 0, 0, 0.28);
	border-radius: 14px;
	padding: 12px;
	margin-bottom: 12px;
}

.nrct-idbox h4 { margin: 0 0 8px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--nrct-primary); }

.nrct-fixnote {
	border: 1px solid rgba(255, 122, 0, 0.28);
	background: rgba(255, 122, 0, 0.08);
	border-radius: 12px;
	padding: 9px 12px;
	font-size: 12px;
	color: #fed7aa;
	margin-bottom: 12px;
}

.nrct-notes { margin: 14px 0 0; padding: 0 18px 0 0; color: var(--nrct-muted); font-size: 13px; }

.nrct-woo {
	border-top: 1px solid var(--nrct-line);
	margin-top: 18px;
	padding-top: 14px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
}

.nrct-woo > p { margin: 0; font-size: 14px; color: #fff; flex: 1 1 240px; }

.nrct-products { display: grid; gap: 10px; grid-template-columns: 1fr; width: 100%; }

.nrct-product {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 10px;
	border: 1px solid var(--nrct-line);
	background: var(--nrct-panel-2);
	border-radius: 14px;
	overflow: hidden;
	align-items: center;
}

.nrct-product img { width: 100%; height: 74px; object-fit: cover; display: block; }
.nrct-product h4 { margin: 0; font-size: 13px; color: #fff; }
.nrct-product p { margin: 2px 0 0; font-size: 11px; color: var(--nrct-muted); }
.nrct-product > div { padding: 8px 10px 8px 0; }

/* --------------------------------------------------------------- drawer */

.nrct-drawer { position: fixed; inset: 0; z-index: 99999; }

.nrct-drawer-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); border: 0; cursor: pointer; }

.nrct-drawer-panel {
	position: absolute;
	inset-inline-start: 16px;
	top: 70px;
	width: min(380px, calc(100vw - 32px));
	max-height: calc(100vh - 100px);
	overflow-y: auto;
	background: var(--nrct-panel);
	border: 1px solid var(--nrct-line);
	border-radius: 18px;
	padding: 18px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
}

.nrct-drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.nrct-drawer-head h2 { margin: 0; font-size: 16px; color: #fff; }

.nrct-drawer-body { direction: rtl; }
.nrct-field-label { font-size: 12px; color: var(--nrct-muted); margin: 0 0 6px; }

.nrct-drawer-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 12px 0; }

.nrct-drawer-grid .nrct-field span { display: block; font-size: 12px; color: var(--nrct-muted); margin-bottom: 4px; }

.nrct-drawer-grid input,
.nrct-drawer-body input[type="number"],
.nrct-drawer-body input[type="text"] {
	width: 100%;
	border: 1px solid var(--nrct-line);
	background: rgba(0, 0, 0, 0.4);
	border-radius: 10px;
	padding: 8px 10px;
	color: #fff;
	font-family: var(--nrct-mono);
	font-size: 12px;
}

.nrct-drawer-toggles { display: grid; gap: 6px; margin: 14px 0; }
.nrct-drawer-toggles .nrct-check { justify-content: space-between; width: 100%; font-size: 12.5px; }

/* ------------------------------------------------------------------ faq */

.nrct-faq details { border-bottom: 1px solid var(--nrct-line); padding: 10px 0; }
.nrct-faq details:last-of-type { border-bottom: 0; }

.nrct-faq summary {
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	color: #f4f4f5;
	list-style: none;
	display: flex;
	justify-content: space-between;
	gap: 10px;
}

.nrct-faq summary::-webkit-details-marker { display: none; }
.nrct-faq summary::after { content: "+"; color: var(--nrct-primary); font-size: 18px; line-height: 1; }
.nrct-faq details[open] summary::after { content: "−"; }
.nrct-faq p { font-size: 13px; color: var(--nrct-muted); margin: 8px 0 0; }

/* ----------------------------------------------------------- guide page */

.nrct-guide-hero-img { width: 100%; height: 220px; object-fit: cover; display: block; border-radius: 20px 20px 0 0; }

.nrct-guidesteps { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 0 0 16px; padding: 0; list-style: none; }

.nrct-guidesteps li { border: 1px solid var(--nrct-line); background: var(--nrct-panel); border-radius: 16px; padding: 16px; }
.nrct-guidesteps em { font-style: normal; font-size: 11px; color: var(--nrct-primary); display: block; margin-bottom: 4px; }
.nrct-guidesteps h3 { font-size: 16px; margin-bottom: 6px; }

.nrct-pre {
	background: rgba(0, 0, 0, 0.45);
	border: 1px solid var(--nrct-line);
	border-radius: 14px;
	padding: 14px;
	overflow-x: auto;
	font-family: var(--nrct-mono);
	font-size: 11px;
	line-height: 1.9;
	color: var(--nrct-muted);
	direction: ltr;
	text-align: left;
}

/* ----------------------------------------------------------- responsive */

@media (min-width: 720px) {
	.nrct-statgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.nrct-btngrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nrct-sticks, .nrct-trigs, .nrct-dzcols, .nrct-tune, .nrct-monitor, .nrct-guidesteps, .nrct-postfix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nrct-id-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nrct-products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.nrct-hero { padding: 48px 36px; }
	.nrct-guide-hero-img { height: 300px; }
}

@media (min-width: 1024px) {
	.nrct-statgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.nrct-btngrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.nrct-id-layout { grid-template-columns: 1.1fr 1fr; }
	.nrct-id-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nrct-fix-layout { grid-template-columns: 1fr 1fr; }
	.nrct-fixgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ------------------------------------------------------- a11y and print */

.nrct-root :focus-visible { outline: 2px solid var(--nrct-primary); outline-offset: 3px; }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.nrct-root *, .nrct-root *::before, .nrct-root *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

@media print {
	body { background: #fff !important; }
	.nrct-no-print, .nrct-hero, .nrct-art, .nrct-fix, .nrct-monitor, .nrct-drawer, .nrct-prompt { display: none !important; }
	.nrct-root, .nrct-card, .nrct-report { background: #fff !important; color: #111 !important; border-color: #ddd !important; box-shadow: none !important; }
	.nrct-root h1, .nrct-root h2, .nrct-root h3, .nrct-big, .nrct-rid, .nrct-score b, .nrct-field dd, .nrct-kvrow dd { color: #111 !important; }
	.nrct-muted, .nrct-desc, .nrct-notes, .nrct-kvrow dt, .nrct-field dt, .nrct-fine { color: #444 !important; }
	.nrct-kvrow, .nrct-field, .nrct-idbox { background: #fafafa !important; }
}
