/* SDesign Repair Request Pro — front-end styles */

.rrs-scope {
	--rrs-primary: #0A3673;
	--rrs-primary-600: #082B5C;
	--rrs-primary-50: #EDF1F7;
	--rrs-primary-100: #D9E1EE;
	--rrs-text: #0F172A;
	--rrs-muted: #64748B;
	--rrs-border: #E2E8F0;
	--rrs-border-strong: #CBD5E1;
	--rrs-surface: #FFFFFF;
	--rrs-soft: #F8FAFC;
	--rrs-danger: #DC2626;
	--rrs-radius: 16px;
	--rrs-radius-sm: 12px;
	--rrs-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
	--rrs-shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px -12px rgba(15, 23, 42, .18);
	color: var(--rrs-text);
	font-family: inherit;
	font-size: 15px;
	line-height: 1.6;
	box-sizing: border-box;
}

@supports (color: color-mix(in srgb, red 50%, blue)) {
	.rrs-scope {
		--rrs-primary-600: color-mix(in srgb, var(--rrs-primary) 82%, #000);
		--rrs-primary-50: color-mix(in srgb, var(--rrs-primary) 7%, #fff);
		--rrs-primary-100: color-mix(in srgb, var(--rrs-primary) 16%, #fff);
	}
}

.rrs-scope *,
.rrs-scope *::before,
.rrs-scope *::after { box-sizing: inherit; }

.rrs-scope svg { flex: none; display: block; }

/* Themes (e.g. Astra: ".ast-single-post .entry-content a") underline every
   content link with higher specificity — our link-styled UI must opt out. */
.rrs-scope a.rrs-stat,
.rrs-scope a.rrs-stat *,
.rrs-scope a.rrs-btn,
.rrs-scope a.rrs-thumb,
.rrs-scope .rrs-meta a,
.rrs-scope .rrs-pagination a { text-decoration: none !important; }
.rrs-scope .rrs-meta a:hover { text-decoration: underline !important; }
.rrs-scope h2,
.rrs-scope h3 { font-family: inherit; letter-spacing: normal; text-transform: none; }

/* ---------- Buttons ---------- */

.rrs-scope .rrs-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	height: 52px;
	padding: 0 26px;
	border: 0;
	border-radius: 12px;
	font: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
	box-shadow: none;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}
.rrs-scope .rrs-btn-primary {
	background: var(--rrs-primary);
	color: #fff;
	box-shadow: 0 10px 24px -10px var(--rrs-primary);
}
.rrs-scope .rrs-btn-primary:hover,
.rrs-scope .rrs-btn-primary:focus-visible {
	background: var(--rrs-primary-600);
	color: #fff;
	transform: translateY(-1px);
}
.rrs-scope .rrs-btn-outline {
	background: #fff;
	color: var(--rrs-primary);
	border: 1.5px solid var(--rrs-primary-100);
}
.rrs-scope .rrs-btn-outline:hover { border-color: var(--rrs-primary); color: var(--rrs-primary); }
.rrs-scope .rrs-btn:focus-visible { outline: 3px solid var(--rrs-primary-100); outline-offset: 2px; }
.rrs-scope .rrs-btn:disabled { opacity: .75; cursor: wait; transform: none; }

.rrs-btn-loading { display: none; align-items: center; gap: 10px; }
.rrs-btn.is-loading .rrs-btn-label { display: none; }
.rrs-btn.is-loading .rrs-btn-loading { display: inline-flex; }
.rrs-btn-label { display: inline-flex; align-items: center; gap: 10px; }
.rrs-spinner {
	width: 18px;
	height: 18px;
	border: 2.5px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: rrs-spin .7s linear infinite;
}

/* ---------- Alerts ---------- */

.rrs-alert {
	display: flex;
	gap: 12px;
	align-items: flex-start;
	padding: 14px 16px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.5;
	margin: 0 0 16px;
	border: 1px solid transparent;
	text-align: left;
}
.rrs-alert svg { margin-top: 1px; }
.rrs-alert-error { background: #FEF2F2; color: #991B1B; border-color: #FECACA; }
.rrs-alert-success { background: #F0FDF4; color: #166534; border-color: #BBF7D0; }
.rrs-alert-warning { background: #FFFBEB; color: #92400E; border-color: #FDE68A; }

/* ---------- Form shell ---------- */

/* Own vertical breathing room: some theme layouts put content flush against the header. */
.rrs-form-wrap { max-width: 700px; margin: 40px auto 56px; scroll-margin-top: 90px; }

/* Block themes / Astra block layout (".entry-content[data-ast-blocks-layout] > *")
   force every content child to the full content width — keep our own widths. */
.rrs-scope.rrs-form-wrap { max-width: 700px !important; margin-left: auto !important; margin-right: auto !important; }
.rrs-scope.rrs-login { max-width: 480px !important; margin-left: auto !important; margin-right: auto !important; }

.rrs-shell {
	background: var(--rrs-surface);
	border: 1px solid var(--rrs-border);
	border-radius: 22px;
	box-shadow: var(--rrs-shadow);
	overflow: hidden;
}

.rrs-hero {
	position: relative;
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 28px 32px;
	background: linear-gradient(135deg, var(--rrs-primary) 0%, var(--rrs-primary-600) 100%);
	color: #fff;
	overflow: hidden;
}
.rrs-hero::before,
.rrs-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	background: rgba(255, 255, 255, .07);
	pointer-events: none;
}
.rrs-hero::before { width: 220px; height: 220px; right: -60px; top: -90px; }
.rrs-hero::after { width: 120px; height: 120px; right: 90px; bottom: -70px; }
.rrs-hero-icon {
	position: relative;
	z-index: 1;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: rgba(255, 255, 255, .14);
	border: 1px solid rgba(255, 255, 255, .2);
	display: grid;
	place-items: center;
	flex: none;
}
.rrs-hero-text { position: relative; z-index: 1; }
.rrs-scope .rrs-hero h2 { margin: 0; color: #fff; font-size: 22px; font-weight: 700; line-height: 1.3; }
.rrs-hero p { margin: 4px 0 0; color: rgba(255, 255, 255, .82); font-size: 14px; }

.rrs-form { padding: 8px 32px 32px; margin: 0; }
.rrs-form > .rrs-alert { margin-top: 24px; }

.rrs-section { padding: 24px 0 22px; border-bottom: 1px dashed var(--rrs-border); }
.rrs-section-title { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; font-size: 16px; font-weight: 600; }
.rrs-step {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background: var(--rrs-primary-50);
	color: var(--rrs-primary);
	font-size: 13px;
	font-weight: 700;
	display: grid;
	place-items: center;
	flex: none;
}
.rrs-optional { color: var(--rrs-muted); font-weight: 400; font-size: 13px; }

.rrs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rrs-field { margin: 0 0 16px; min-width: 0; }
.rrs-field:last-child { margin-bottom: 0; }
.rrs-row .rrs-field { margin-bottom: 0; }
.rrs-row + .rrs-field,
.rrs-field + .rrs-row { margin-top: 16px; }
.rrs-scope .rrs-field-label {
	display: block;
	margin: 0 0 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--rrs-text);
}
.rrs-req { color: var(--rrs-danger); margin-left: 2px; }

.rrs-input { position: relative; }
.rrs-input > svg {
	position: absolute;
	left: 15px;
	top: 50%;
	transform: translateY(-50%);
	color: #94A3B8;
	pointer-events: none;
	transition: color .15s ease;
}
.rrs-input:focus-within > svg { color: var(--rrs-primary); }

.rrs-scope .rrs-input input,
.rrs-scope .rrs-textarea,
.rrs-scope .rrs-captcha-input {
	display: block;
	width: 100%;
	height: 50px;
	margin: 0;
	padding: 0 14px 0 46px;
	border: 1.5px solid var(--rrs-border);
	border-radius: var(--rrs-radius-sm);
	background: var(--rrs-soft);
	color: var(--rrs-text);
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	box-shadow: none;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.rrs-scope .rrs-textarea { height: auto; min-height: 120px; padding: 12px 14px; resize: vertical; }
.rrs-scope .rrs-input input::placeholder,
.rrs-scope .rrs-textarea::placeholder { color: #94A3B8; opacity: 1; }
.rrs-scope .rrs-input input:hover,
.rrs-scope .rrs-textarea:hover,
.rrs-scope .rrs-captcha-input:hover { border-color: var(--rrs-border-strong); }
.rrs-scope .rrs-input input:focus,
.rrs-scope .rrs-textarea:focus,
.rrs-scope .rrs-captcha-input:focus {
	border-color: var(--rrs-primary);
	background: #fff;
	box-shadow: 0 0 0 4px var(--rrs-primary-100);
}
.rrs-counter { margin-top: 6px; text-align: right; font-size: 12px; color: var(--rrs-muted); }

/* Category tiles */
.rrs-scope .rrs-cats {
	display: block;
	margin: 0 0 16px;
	padding: 0;
	border: 0;
	min-width: 0;
}
.rrs-scope .rrs-cats legend { padding: 0; }
.rrs-cats-grid {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}
.rrs-cat-option { position: relative; display: block; margin: 0; cursor: pointer; }
.rrs-cat-option input {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	opacity: 0;
	cursor: pointer;
}
.rrs-cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	height: 100%;
	padding: 14px 6px 12px;
	border: 1.5px solid var(--rrs-border);
	border-radius: 14px;
	background: #fff;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	text-align: center;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease, background-color .15s ease;
}
.rrs-cat-ico {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--rrs-soft);
	color: var(--cat);
	transition: background-color .15s ease, color .15s ease;
}
.rrs-cat-option:hover .rrs-cat-card { border-color: var(--rrs-border-strong); transform: translateY(-2px); }
.rrs-cat-option input:checked + .rrs-cat-card { border-color: var(--cat); box-shadow: 0 0 0 3px rgba(15, 23, 42, .06); }
.rrs-cat-option input:checked + .rrs-cat-card .rrs-cat-ico { background: var(--cat); color: #fff; }
.rrs-cat-option input:focus-visible + .rrs-cat-card { outline: 3px solid var(--rrs-primary-100); outline-offset: 2px; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.rrs-cat-ico { background: color-mix(in srgb, var(--cat) 12%, #fff); }
	.rrs-cat-option input:checked + .rrs-cat-card {
		background: color-mix(in srgb, var(--cat) 5%, #fff);
		box-shadow: 0 0 0 3px color-mix(in srgb, var(--cat) 18%, transparent);
	}
}

/* Photo drop zone */
.rrs-drop {
	position: relative;
	padding: 26px 20px;
	border: 2px dashed var(--rrs-border-strong);
	border-radius: 16px;
	background: var(--rrs-soft);
	text-align: center;
	transition: border-color .15s ease, background-color .15s ease;
}
.rrs-drop:hover,
.rrs-drop:focus-within,
.rrs-drop.is-dragover { border-color: var(--rrs-primary); background: var(--rrs-primary-50); }
.rrs-drop.is-hidden { display: none; }
.rrs-drop input[type="file"] {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	opacity: 0;
	cursor: pointer;
}
.rrs-drop-ico {
	width: 52px;
	height: 52px;
	margin: 0 auto 10px;
	border-radius: 50%;
	background: #fff;
	color: var(--rrs-primary);
	display: grid;
	place-items: center;
	box-shadow: var(--rrs-shadow-sm);
}
.rrs-drop strong { display: block; font-size: 15px; font-weight: 600; }
.rrs-drop strong span { color: var(--rrs-primary); text-decoration: underline; text-underline-offset: 3px; }
.rrs-drop small { display: block; margin-top: 2px; color: var(--rrs-muted); font-size: 13px; }
.rrs-drop-error { margin: 10px 0 0; color: var(--rrs-danger); font-size: 13px; }

.rrs-preview {
	display: none;
	align-items: center;
	gap: 14px;
	padding: 10px 12px 10px 10px;
	border: 1.5px solid var(--rrs-border);
	border-radius: 16px;
	background: #fff;
}
.rrs-preview.is-visible { display: flex; }
.rrs-preview img { width: 68px; height: 68px; object-fit: cover; border-radius: 12px; }
.rrs-preview-info { flex: 1; min-width: 0; }
.rrs-preview-name { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrs-preview-size { display: block; color: var(--rrs-muted); font-size: 12px; }
.rrs-scope .rrs-preview-remove {
	width: 38px;
	height: 38px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 50%;
	background: var(--rrs-soft);
	color: var(--rrs-muted);
	display: grid;
	place-items: center;
	cursor: pointer;
	box-shadow: none;
}
.rrs-scope .rrs-preview-remove:hover { background: #FEE2E2; color: var(--rrs-danger); }

/* Footer: CAPTCHA + submit */
.rrs-form-footer { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px; padding-top: 24px; }
.rrs-captcha { flex: 1 1 240px; }
.rrs-captcha-row { display: flex; align-items: center; gap: 10px; }
.rrs-captcha-q {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	height: 50px;
	padding: 0 16px;
	border-radius: var(--rrs-radius-sm);
	background: var(--rrs-primary-50);
	color: var(--rrs-primary);
	font-weight: 700;
	font-size: 16px;
	white-space: nowrap;
}
.rrs-scope .rrs-captcha-input { width: 96px; padding: 0 12px; text-align: center; font-weight: 600; }
.rrs-form-footer .rrs-btn { flex: 1 1 240px; }
.rrs-captcha .cf-turnstile,
.rrs-captcha .g-recaptcha { min-height: 65px; }
.rrs-captcha-recaptcha_v3 { flex-basis: 100%; order: 2; }
.rrs-captcha-note { display: flex; align-items: center; gap: 6px; margin: 0; color: var(--rrs-muted); font-size: 12.5px; }
.rrs-privacy { display: flex; gap: 8px; align-items: center; margin: 16px 0 0; color: var(--rrs-muted); font-size: 12.5px; }

/* Success state */
.rrs-success { padding: 52px 32px 44px; text-align: center; }
.rrs-success-ico {
	width: 84px;
	height: 84px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background: #DCFCE7;
	color: #16A34A;
	display: grid;
	place-items: center;
	box-shadow: 0 0 0 10px #F0FDF4;
	animation: rrs-pop .45s cubic-bezier(.2, .9, .3, 1.3) both;
}
.rrs-scope .rrs-success h3 { margin: 0 0 6px; font-size: 22px; font-weight: 700; color: var(--rrs-text); }
.rrs-success p { margin: 0 auto; max-width: 420px; color: var(--rrs-muted); }
.rrs-ref {
	display: flex;
	flex-direction: column;
	gap: 2px;
	width: fit-content;
	margin: 22px auto 24px;
	padding: 12px 28px;
	border-radius: 14px;
	background: var(--rrs-primary-50);
	color: var(--rrs-primary);
}
.rrs-ref small { font-size: 12px; opacity: .8; }
.rrs-ref strong { font-size: 24px; letter-spacing: 1px; line-height: 1.2; }
.rrs-success .rrs-alert { max-width: 440px; margin: 0 auto 24px; }

/* ---------- Login / empty states ---------- */

.rrs-login {
	max-width: 480px;
	margin: 40px auto 56px;
	padding: 44px 32px;
	background: #fff;
	border: 1px solid var(--rrs-border);
	border-radius: 22px;
	box-shadow: var(--rrs-shadow);
	text-align: center;
}
.rrs-login-ico,
.rrs-empty-ico {
	width: 64px;
	height: 64px;
	margin: 0 auto 16px;
	border-radius: 50%;
	background: var(--rrs-primary-50);
	color: var(--rrs-primary);
	display: grid;
	place-items: center;
}
.rrs-scope .rrs-login h3,
.rrs-scope .rrs-empty-state h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; color: var(--rrs-text); }
.rrs-login p,
.rrs-empty-state p { margin: 0 0 22px; color: var(--rrs-muted); font-size: 14px; }
.rrs-empty-state {
	padding: 48px 24px;
	border: 2px dashed var(--rrs-border);
	border-radius: var(--rrs-radius);
	text-align: center;
	background: #fff;
}
.rrs-empty-state p { margin-bottom: 0; }

/* ---------- One-click demo login ---------- */

.rrs-scope.rrs-demo {
	max-width: 700px !important;
	margin: 20px auto 0 !important;
	padding: 22px;
	background: var(--rrs-soft);
	border: 1px solid var(--rrs-border);
	border-radius: 20px;
}
.rrs-demo-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.rrs-demo-ico,
.rrs-demo-card-ico {
	display: grid;
	place-items: center;
	flex: none;
	background: var(--rrs-primary-50);
	color: var(--rrs-primary);
}
.rrs-demo-ico { width: 46px; height: 46px; border-radius: 14px; }
.rrs-scope .rrs-demo-head h3 { margin: 0; font-size: 19px; font-weight: 700; line-height: 1.35; color: var(--rrs-text); }
.rrs-demo-head p { margin: 2px 0 0; color: var(--rrs-muted); font-size: 14px; line-height: 1.5; }
.rrs-demo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.rrs-demo-card {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px;
	background: #fff;
	border: 1px solid var(--rrs-border);
	border-radius: 16px;
	box-shadow: var(--rrs-shadow-sm);
}
.rrs-demo-card-ico { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 4px; }
.rrs-scope .rrs-demo-card h4 { margin: 0; font-size: 17px; font-weight: 600; color: var(--rrs-text); }
.rrs-demo-card p { flex: 1; margin: 0; color: var(--rrs-muted); font-size: 14px; line-height: 1.5; }
.rrs-demo-card small { color: #94A3B8; font-size: 12.5px; }
.rrs-demo-card form { margin: 0; }
.rrs-scope .rrs-demo-card .rrs-btn { width: 100%; height: 46px; margin-top: 8px; font-size: 15px; }
.rrs-demo-foot { margin: 14px 0 0; text-align: center; font-size: 13px; }
.rrs-demo .rrs-alert { margin-bottom: 14px; }

/* ---------- Dashboard ---------- */

.rrs-dash { max-width: 1100px; margin: 0 auto; container-type: inline-size; }

.rrs-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 22px; }
.rrs-dash-tools { display: flex; justify-content: flex-end; margin: -8px 0 18px; }
.rrs-scope .rrs-dash-tools .rrs-btn { height: 40px; padding: 0 16px; font-size: 14px; gap: 8px; border-radius: 10px; }
.rrs-scope .rrs-stat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px;
	background: #fff;
	border: 1.5px solid var(--rrs-border);
	border-radius: var(--rrs-radius);
	box-shadow: var(--rrs-shadow-sm);
	color: var(--rrs-text);
	text-decoration: none;
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.rrs-scope .rrs-stat:hover { transform: translateY(-2px); box-shadow: var(--rrs-shadow); border-color: var(--rrs-border-strong); color: var(--rrs-text); }
.rrs-scope .rrs-stat.is-active { border-color: var(--stat); box-shadow: 0 0 0 3px rgba(15, 23, 42, .06); }
.rrs-stat-ico {
	width: 44px;
	height: 44px;
	border-radius: 12px;
	display: grid;
	place-items: center;
	background: var(--rrs-soft);
	color: var(--stat);
	flex: none;
}
.rrs-stat.is-active .rrs-stat-ico { background: var(--stat); color: #fff; }
.rrs-stat-num { display: block; font-size: 24px; font-weight: 700; line-height: 1.15; }
.rrs-stat-label { display: block; font-size: 13px; color: var(--rrs-muted); }
.rrs-stat-all { --stat: #475569; }
.rrs-stat-pending { --stat: var(--rrs-primary); }
.rrs-stat-progress { --stat: #D97706; }
.rrs-stat-done { --stat: #16A34A; }
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.rrs-stat-ico { background: color-mix(in srgb, var(--stat) 11%, #fff); }
	.rrs-scope .rrs-stat.is-active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--stat) 16%, transparent); }
}

.rrs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }

.rrs-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 18px 18px 16px 22px;
	background: #fff;
	border: 1px solid var(--rrs-border);
	border-radius: var(--rrs-radius);
	box-shadow: var(--rrs-shadow-sm);
	overflow: hidden;
	scroll-margin-top: 100px;
	transition: box-shadow .2s ease, transform .2s ease;
}
.rrs-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--status); }
.rrs-card:hover { box-shadow: var(--rrs-shadow); }
.rrs-card:target { box-shadow: 0 0 0 3px var(--rrs-primary-100), var(--rrs-shadow); }

.rrs-status-pending { --status: var(--rrs-primary); --pill-bg: var(--rrs-primary-50); --pill-fg: var(--rrs-primary); }
.rrs-status-progress { --status: #F59E0B; --pill-bg: #FFFBEB; --pill-fg: #B45309; }
.rrs-status-done { --status: #22C55E; --pill-bg: #F0FDF4; --pill-fg: #15803D; }

.rrs-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.rrs-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 11px 4px 8px;
	border-radius: 999px;
	background: var(--rrs-soft);
	color: var(--cat);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
}
@supports (color: color-mix(in srgb, red 50%, blue)) {
	.rrs-chip { background: color-mix(in srgb, var(--cat) 11%, #fff); }
}
.rrs-pill {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--pill-bg);
	color: var(--pill-fg);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.4;
}
.rrs-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.rrs-status-progress .rrs-pill::before { animation: rrs-pulse 1.6s ease-in-out infinite; }

.rrs-scope .rrs-card-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--rrs-text); word-break: break-word; }
.rrs-card-sub { display: flex; align-items: center; gap: 6px; margin-top: -8px; color: var(--rrs-muted); font-size: 13px; }
.rrs-card-sub b { color: var(--rrs-text); font-weight: 600; }

.rrs-card-main { display: flex; gap: 14px; align-items: flex-start; }
.rrs-scope .rrs-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.rrs-scope .rrs-meta li { display: flex; align-items: center; gap: 9px; margin: 0; padding: 0; min-width: 0; }
.rrs-meta li svg { color: #94A3B8; }
.rrs-meta li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrs-scope .rrs-meta a { color: var(--rrs-primary); font-weight: 500; text-decoration: none; }
.rrs-scope .rrs-thumb {
	position: relative;
	flex: none;
	width: 80px;
	height: 80px;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--rrs-border);
	display: block;
}
.rrs-scope .rrs-thumb img { width: 100%; height: 100%; object-fit: cover; margin: 0; transition: transform .25s ease; }
.rrs-thumb:hover img { transform: scale(1.06); }

.rrs-desc {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: var(--rrs-soft);
	color: #475569;
	font-size: 13.5px;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	word-break: break-word;
}

/* Segmented status control */
.rrs-seg {
	display: flex;
	gap: 4px;
	margin: auto 0 0;
	padding: 4px;
	border: 1px solid var(--rrs-border);
	border-radius: 12px;
	background: var(--rrs-soft);
}
.rrs-scope .rrs-seg button {
	flex: 1;
	min-height: 0;
	margin: 0;
	padding: 8px 4px;
	border: 0;
	border-radius: 9px;
	background: transparent;
	color: var(--rrs-muted);
	font: inherit;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.3;
	letter-spacing: normal;
	text-transform: none;
	box-shadow: none;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.rrs-scope .rrs-seg button:hover { background: #fff; color: var(--rrs-text); }
.rrs-scope .rrs-seg button.is-current {
	background: #fff;
	color: var(--pill-fg);
	font-weight: 600;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .14);
	cursor: default;
}

/* Pagination */
.rrs-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 26px; }
.rrs-scope .rrs-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid var(--rrs-border);
	border-radius: 11px;
	background: #fff;
	color: var(--rrs-text);
	font-weight: 500;
	text-decoration: none;
	transition: border-color .15s ease, background-color .15s ease;
}
.rrs-scope .rrs-pagination a.page-numbers:hover { border-color: var(--rrs-primary); color: var(--rrs-primary); }
.rrs-scope .rrs-pagination .page-numbers.current { background: var(--rrs-primary); border-color: var(--rrs-primary); color: #fff; }
.rrs-scope .rrs-pagination .page-numbers.dots { border: 0; background: transparent; }

/* ---------- Chart ---------- */

.rrs-chart-card {
	max-width: 800px;
	margin: 0 auto;
	padding: 20px 22px 16px;
	background: #fff;
	border: 1px solid var(--rrs-border);
	border-radius: var(--rrs-radius);
	box-shadow: var(--rrs-shadow-sm);
}
.rrs-chart-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.rrs-chart-head span { color: var(--rrs-muted); font-size: 14px; }
.rrs-chart-total {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--rrs-primary-50);
	color: var(--rrs-primary) !important;
	font-weight: 600;
	font-size: 13px !important;
}
.rrs-chart-canvas { position: relative; height: 300px; }

/* ---------- Animations ---------- */

@keyframes rrs-spin { to { transform: rotate(360deg); } }
@keyframes rrs-pop { 0% { transform: scale(.4); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@keyframes rrs-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }

@media (prefers-reduced-motion: reduce) {
	.rrs-scope *,
	.rrs-scope *::before { animation: none !important; transition: none !important; }
}

/* ---------- Responsive ---------- */

/* Based on the space the theme gives the dashboard, not the screen width. */
@container (max-width: 700px) {
	.rrs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@supports not (container-type: inline-size) {
	@media (max-width: 860px) {
		.rrs-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	}
}
.rrs-stat-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rrs-stat > span:last-child { min-width: 0; }
@container (max-width: 460px) {
	.rrs-scope .rrs-stat { flex-direction: column; align-items: flex-start; gap: 8px; }
	.rrs-scope .rrs-seg button { padding: 8px 2px; font-size: 12px; white-space: nowrap; }
}
@media (max-width: 600px) {
	.rrs-hero { padding: 22px 20px; }
	.rrs-scope .rrs-hero h2 { font-size: 19px; }
	.rrs-hero-icon { width: 48px; height: 48px; border-radius: 14px; }
	.rrs-form { padding: 4px 20px 24px; }
	.rrs-row { grid-template-columns: 1fr; gap: 16px; }
	.rrs-cats-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rrs-success { padding: 40px 20px 32px; }
	.rrs-cards { grid-template-columns: 1fr; }
	.rrs-stat { padding: 12px; gap: 10px; }
	.rrs-stat-ico { width: 38px; height: 38px; }
	.rrs-stat-num { font-size: 20px; }
	.rrs-chart-canvas { height: 240px; }
}
