/* APKB Design System 1.0 — cabecera compartida */
.apkb-ds-header{
	position:relative;
	isolation:isolate;
	display:flex;
	align-items:center;
	justify-content:space-between;
	min-height:84px;
	margin:0 0 30px;
	padding:12px 2px 20px;
	border-bottom:1px solid rgba(58,210,232,.46);
	overflow:hidden;
}
.apkb-ds-header:after{
	content:"";
	position:absolute;
	left:0;right:0;bottom:-1px;
	height:1px;
	background:linear-gradient(90deg,transparent,rgba(52,222,234,.8) 16%,rgba(78,164,209,.58) 55%,transparent);
	box-shadow:0 0 12px rgba(34,208,221,.22);
}
.apkb-ds-header__identity{display:flex;align-items:center;gap:12px;min-width:0}
.apkb-ds-header__identity img{width:52px;height:52px;flex:0 0 52px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 4px 9px rgba(0,0,0,.32))}
.apkb-ds-header__identity div{display:flex;flex-direction:column;min-width:0}
.apkb-ds-header__identity strong{color:#fff;font-size:27px;font-weight:850;line-height:1;letter-spacing:-.5px}
.apkb-ds-header__identity span{margin-top:6px;color:#f2f7fb;font-size:11px;line-height:1.15;white-space:nowrap}
.apkb-ds-header__bell{position:relative;display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;color:#e7f6ff;background:linear-gradient(145deg,rgba(255,255,255,.085),rgba(255,255,255,.025));border:1px solid rgba(139,205,230,.2);border-radius:14px;text-decoration:none;box-shadow:inset 0 1px rgba(255,255,255,.05),0 8px 20px rgba(0,0,0,.18)}
.apkb-ds-header__bell svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.apkb-ds-header__bell small{position:absolute;right:-5px;top:-5px;display:grid;place-items:center;min-width:19px;height:19px;padding:0 5px;color:#fff;background:#ff4054;border:2px solid #071723;border-radius:999px;font-size:10px;font-weight:800}
@media(max-width:410px){.apkb-ds-header{min-height:76px;margin-bottom:26px;padding-bottom:17px}.apkb-ds-header__identity img{width:46px;height:46px;flex-basis:46px}.apkb-ds-header__identity strong{font-size:24px}.apkb-ds-header__identity span{max-width:200px;font-size:9px}.apkb-ds-header__bell{width:40px;height:40px;flex-basis:40px}}
@media(max-width:350px){.apkb-ds-header__identity span{display:none}}

/* Semáforo legal de especies: el texto evita depender únicamente del color. */
.apkb-species-legal{display:inline-flex;align-items:center;gap:5px;width:max-content;max-width:100%;margin:5px 0;padding:4px 8px;color:#d7e5eb;background:rgba(5,25,36,.88);border:1px solid rgba(148,170,180,.45);border-radius:999px;font-size:9px;font-style:normal;font-weight:850;line-height:1.15;letter-spacing:.01em;vertical-align:middle}
.apkb-species-legal>i{display:block;width:9px;height:9px;flex:0 0 9px;background:#899aa3;border:1px solid rgba(255,255,255,.65);border-radius:50%;box-shadow:0 0 8px currentColor}
.apkb-species-legal.is-rojo{color:#ff7280;border-color:rgba(255,78,96,.65)}.apkb-species-legal.is-rojo>i{background:#ff4054}
.apkb-species-legal.is-amarillo{color:#ffd36c;border-color:rgba(255,195,55,.65)}.apkb-species-legal.is-amarillo>i{background:#ffc337}
.apkb-species-legal.is-verde{color:#72e6aa;border-color:rgba(64,211,132,.58)}.apkb-species-legal.is-verde>i{background:#35ce83}
.apkb-species-legal.is-compact{position:absolute;right:7px;top:7px;z-index:5;margin:0;padding:5px}.apkb-species-legal.is-compact>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.apkb-species-legal-output{position:relative!important;right:auto!important;top:auto!important;margin-top:7px!important}.apkb-species-legal-note{margin:5px 0 13px;color:#8da5af;font-size:9px;line-height:1.45}
.apkb-species-legal-warning{margin:8px 14px 0;padding:10px 12px;color:#c8d7de;background:#092431;border-left:4px solid #899aa3;border-radius:9px;font-size:10px;line-height:1.45}.apkb-species-legal-warning.is-rojo{border-color:#ff4054}.apkb-species-legal-warning.is-amarillo{border-color:#ffc337}.apkb-species-legal-warning.is-verde{border-color:#35ce83}
.apkb-capture-detail__overlay>.apkb-species-legal{display:flex}.apkb-gallery-card__content>.apkb-species-legal.is-compact{left:auto;right:0;top:-2px}
