/**
 * Chrome compartido del plugin (panel + gestión).
 * Aquí viven estructura global, marca, formularios base y avisos.
 */

.depol-mr-app :is(a, button, input, select, textarea, label, summary) {
	-webkit-tap-highlight-color: transparent;
}

.depol-mr-app__bar {
	background: rgba(255, 255, 255, 0.96);
	padding: 0;
	box-shadow: var(--shadow-sm);
	position: sticky;
	top: 0;
	z-index: 50;
	backdrop-filter: blur(10px);
}

.depol-mr-app__bar--sub {
	padding-bottom: 0;
}

.depol-mr-app__bar-inner,
.depol-mr-app .depol-mr-content-column,
.depol-mr-app .exam-wrap,
.depol-mr-app .res-wrap-view {
	box-sizing: border-box;
	width: 100%;
	max-width: var(--depol-mr-content-max);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--depol-mr-content-x);
	padding-right: var(--depol-mr-content-x);
}

.depol-mr-app__bar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	flex-wrap: wrap;
	padding-top: 13px;
	padding-bottom: 13px;
}

.depol-mr-app__bar-sub {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	width: 100%;
	margin: 0;
	padding: 1rem 0;
	border-top: 1px solid var(--border);
	background: var(--depol-mr-gradient-soft);
}

.depol-mr-app__bar-sub-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	width: 100%;
}

.depol-mr-app__bar-sub-toolbar--with-chips {
	margin-bottom: 0.75rem;
	padding-bottom: 0.75rem;
	border-bottom: 1px solid var(--border);
}

.depol-mr-app__bar-sub-toolbar--history-only {
	justify-content: flex-end;
}

.depol-mr-app__brand {
	display: flex;
	align-items: center;
}

.depol-mr-app__brand-lockup {
	display: inline-flex;
	align-items: center;
	min-width: 0;
}

.depol-mr-app__brand-stats {
	display: inline-flex;
	align-items: center;
	height: 43px;
	margin: 0 0 0 0.7rem;
	padding: 0 0.12em 0 0.75rem;
	overflow: hidden;
	border-left: 2px solid var(--gold);
	color: var(--gold);
	font-size: 40px;
	font-weight: 900;
	font-style: italic;
	letter-spacing: 0.01em;
	line-height: 1;
	text-transform: uppercase;
}

.depol-mr-app__bar .logo,
.depol-mr-app__logo-link {
	display: block;
	flex-shrink: 0;
	text-decoration: none;
	text-indent: -9999px;
	overflow: hidden;
}

.depol-mr-app__bar .logo:focus-visible {
	outline: 2px solid var(--gold);
	outline-offset: 3px;
}

.depol-mr-app__brand-text {
	font-weight: 700;
	font-size: 1rem;
	letter-spacing: 2px;
	color: var(--navy);
	text-transform: uppercase;
}

@media (max-width: 640px) {
	.depol-mr-app__brand-stats {
		height: 36px;
		font-size: 34px;
		margin-left: 0.55rem;
		padding-left: 0.6rem;
	}
}

.depol-mr-app__actions {
	display: flex;
	gap: clamp(0.25rem, 1.2vw, 0.5rem);
	flex-wrap: nowrap;
	align-items: center;
}

.depol-mr-app__bar .depol-mr-button {
	min-height: 37px;
	padding-top: 0;
	padding-bottom: 0;
}

.depol-mr-app .form-zone {
	background: var(--bg2);
	padding: 2rem 0 2.5rem;
}

.depol-mr-app .form-card {
	background: #fff;
	border: 1px solid var(--border);
	border-radius: var(--radius-xl);
	padding: clamp(1.5rem, 4vw, 2rem);
	margin: 0 auto;
	text-align: left;
	box-shadow: var(--shadow-md);
}

.depol-mr-app:not(.depol-mr-gestion-app) .form-card {
	max-width: 520px;
}

.depol-mr-app .form-card h3 {
	font-size: 1.1rem;
	color: var(--navy);
	margin-bottom: 1.2rem;
	font-weight: 700;
}

.depol-mr-app .depol-mr-privacy {
	margin: 1rem 0;
	width: 100%;
	box-sizing: border-box;
}

.depol-mr-app .depol-mr-privacy-label {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
	margin: 0;
	padding: 0;
	text-align: left;
	font-weight: 400;
	letter-spacing: normal;
	text-transform: none;
	cursor: pointer;
}

.depol-mr-app .depol-mr-privacy-label input.depol-mr-privacy-input {
	flex-shrink: 0;
	width: 1.125rem;
	height: 1.125rem;
	min-width: 1.125rem;
	max-width: 1.125rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--border);
	border-radius: 3px;
	background: #fff;
	accent-color: var(--navy);
	cursor: pointer;
	box-sizing: border-box;
}

.depol-mr-app .depol-mr-privacy-text {
	flex: 1;
	min-width: 0;
	display: block;
	margin: 0;
	padding: 0;
	font-size: 0.82rem;
	line-height: 1.45;
	letter-spacing: normal;
	text-transform: none;
	font-weight: 400;
	color: var(--text);
}

.depol-mr-app .depol-mr-privacy-text a {
	color: var(--navy);
	font-weight: 600;
	text-decoration: underline;
}

.depol-mr-app .depol-mr-modal-overlay .depol-mr-privacy {
	margin: 0 0 1.25rem;
}

.depol-mr-app .depol-mr-access-hint {
	margin: 0 0 1.15rem;
	font-size: var(--depol-mr-ui-font-size);
	line-height: 1.55;
	color: var(--textsub);
}

.depol-mr-app .depol-mr-hp-wrap {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 0;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

.depol-mr-app .depol-mr-turnstile-wrap {
	margin: 0 0 1rem;
}

.depol-mr-app .notice-inline {
	font-size: var(--depol-mr-ui-font-size);
	font-weight: 600;
	padding: 0.75rem 1rem;
	border-radius: var(--radius-md);
	margin-bottom: 1rem;
	border: 1px solid transparent;
	line-height: 1.45;
}

.depol-mr-app .notice-inline__text {
	margin: 0;
}

.depol-mr-app .notice-inline--dismissible {
	position: relative;
	padding-right: 2.25rem;
}

.depol-mr-app .notice-inline__dismiss {
	position: absolute;
	top: 0.45rem;
	right: 0.45rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.65rem;
	height: 1.65rem;
	margin: 0;
	padding: 0;
	border: none;
	border-radius: 6px;
	background: transparent;
	color: inherit;
	font-size: 1.25rem;
	line-height: 1;
	cursor: pointer;
	opacity: 0.65;
}

.depol-mr-app .notice-inline__dismiss:hover,
.depol-mr-app .notice-inline__dismiss:focus-visible {
	opacity: 1;
	background: rgba(var(--text-rgb), 0.06);
	outline: none;
	box-shadow: var(--focus-ring);
}

.depol-mr-app .notice-inline--ok {
	background: var(--success-bg);
	border-color: var(--success-border);
	color: var(--notice-success-text);
}

.depol-mr-app .notice-inline--err {
	background: var(--danger-bg);
	border-color: var(--danger-border);
	color: var(--notice-error-text);
}

.depol-mr-app .notice-inline--warn {
	background: var(--warning-bg);
	border-color: var(--warning-border);
	color: var(--notice-warning-text);
}

.depol-mr-app .notice-inline--muted {
	background: #f4f6f9;
	border-color: rgba(12, 35, 64, 0.08);
	color: var(--notice-info-text);
}

/* Pie del tema dentro del panel / gestión (no depende del CSS del theme en caché). */
.depol-mr-app > .site-footer {
	flex-shrink: 0;
	width: 100%;
	margin-top: auto;
	padding: 1rem 0 0.85rem;
	font-size: 0.875rem;
	line-height: 1.4;
	color: var(--textsub);
	background: #f1f3f6;
	border-top: 1px solid var(--border);
}

.depol-mr-app > .site-footer .site-footer__inner {
	width: 100%;
	max-width: var(--depol-mr-content-max);
	margin: 0 auto;
	padding: 0 var(--depol-mr-content-x);
}

.depol-mr-app > .site-footer .site-footer__contact {
	margin-bottom: 0.7rem;
}

.depol-mr-app > .site-footer .site-footer__contact h4 {
	margin: 0 0 0.4rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--navy);
}

.depol-mr-app > .site-footer .site-footer__contact ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.depol-mr-app > .site-footer .site-footer__contact li + li {
	margin-top: 0.35rem;
}

.depol-mr-app > .site-footer a {
	color: var(--navy);
	text-decoration: none;
	font-weight: 600;
}

.depol-mr-app > .site-footer a:hover {
	color: var(--navy2);
	text-decoration: underline;
}

.depol-mr-app > .site-footer .site-footer__legal {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1.25rem;
	flex-wrap: wrap;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(var(--navy-rgb), 0.14);
	font-size: 0.78rem;
	color: var(--textsub);
}

.depol-mr-app > .site-footer .site-footer__legal strong {
	color: var(--navy);
	font-weight: 700;
}

.depol-mr-app > .site-footer .site-footer__legal-links {
	display: inline-flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
}

.depol-mr-app > .site-footer .site-footer__legal .sep {
	color: rgba(var(--text-rgb), 0.45);
	user-select: none;
}

@media (max-width: 820px) {
	.depol-mr-app > .site-footer .site-footer__legal {
		flex-direction: column;
		align-items: flex-start;
	}
}
