/* BugAnalyzr Beetle Identifier v1.1.0 — palette matched to buganalyzr.com */
.btlid {
	--btl-primary: #0E8A66;
	--btl-primary-dk: #0B6E51;
	--btl-deep: #0E3B2E;
	--btl-ink: #14352A;
	--btl-text: #353535;
	--btl-muted: #5B6B62;
	--btl-soft: #E7F2EC;
	--btl-soft-bd: #D3E7DC;
	--btl-drop: #F4FAF6;
	--btl-drop-bd: #BFE0CF;
	--btl-card: #F6FAF7;
	--btl-card-bd: #E6EFE9;
	--btl-amber: #B7791F;
	--btl-amber-bg: #FFF6E5;
	--btl-red: #C0392B;
	--btl-red-bg: #FDECEA;
	--btl-radius: 20px;
	--btl-head: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: var(--btl-text);
	line-height: 1.6;
	box-sizing: border-box;
}
.btlid *, .btlid *::before, .btlid *::after { box-sizing: inherit; }
.btlid [hidden] { display: none !important; }

/* ---------- buttons & badges ---------- */
.btlid .btlid-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 11px 24px; border-radius: 999px;
	font: 600 15px/1.2 var(--btl-head); text-decoration: none; cursor: pointer;
	border: 1.5px solid transparent; transition: background .2s, transform .15s, box-shadow .2s;
	-webkit-tap-highlight-color: transparent;
}
.btlid .btlid-btn--primary { background: var(--btl-primary); color: #fff; box-shadow: 0 6px 16px rgba(14,138,102,.22); }
.btlid .btlid-btn--primary:hover { background: var(--btl-primary-dk); color: #fff; transform: translateY(-1px); }
.btlid .btlid-btn--ghost { background: #fff; color: var(--btl-ink); border-color: #E0EAE4; }
.btlid .btlid-btn--ghost:hover { border-color: var(--btl-primary); color: var(--btl-primary); }
.btlid .btlid-btn--quiet { background: transparent; color: var(--btl-muted); padding-inline: 12px; }
.btlid .btlid-btn--quiet:hover { color: var(--btl-primary); }
.btlid .btlid-btn--lg { min-height: 52px; padding-inline: 32px; font-size: 16px; }
.btlid .btlid-btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btlid .btlid-btn:focus-visible, .btlid .btlid-drop:focus-visible { outline: 3px solid rgba(14,138,102,.4); outline-offset: 2px; }

.btlid-badge { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font: 600 12.5px/1.2 var(--btl-head); white-space: nowrap; border: 1px solid transparent; }
.btlid-badge--safe { background: var(--btl-soft); color: var(--btl-primary-dk); border-color: var(--btl-soft-bd); }
.btlid-badge--warn { background: var(--btl-amber-bg); color: #8A5A10; border-color: #F3DDB1; }
.btlid-badge--danger { background: var(--btl-red-bg); color: #9E2B20; border-color: #F5C9C3; }
.btlid-badge--neutral { background: #F1F3F2; color: #4A5650; border-color: #E1E6E3; }

/* ---------- hero ---------- */
.btlid-hero { display: grid; gap: 32px; align-items: center; padding: 8px 0 36px; }
.btlid-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--btl-soft); border: 1px solid var(--btl-soft-bd); color: var(--btl-primary-dk); font: 700 12px/1 var(--btl-head); letter-spacing: .08em; text-transform: uppercase; }
.btlid-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--btl-primary); box-shadow: 0 0 0 4px rgba(14,138,102,.15); }
.btlid .btlid-hero__title { margin: 16px 0 12px; font: 800 clamp(30px, 5vw, 44px)/1.15 var(--btl-head); color: var(--btl-ink); letter-spacing: -.01em; }
.btlid-hero__accent { color: var(--btl-primary); }
.btlid .btlid-hero__sub { margin: 0 0 22px; font-size: 17px; color: var(--btl-muted); max-width: 560px; }
.btlid-hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btlid .btlid-hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--btl-muted); }
.btlid .btlid-hero__facts li { margin: 0; }
.btlid-hero__facts strong { color: var(--btl-ink); font-family: var(--btl-head); }
.btlid-frame { margin: 0; background: #fff; border: 1px solid #EEF3EF; border-radius: 22px; padding: 12px; box-shadow: 0 18px 40px rgba(20,53,42,.10); }
.btlid-frame__img { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--btl-soft); }
.btlid-frame__img img, .btlid-frame__img svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.btlid-frame__cap { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 6px 4px; }
.btlid-frame__name { display: block; font: 700 15px/1.3 var(--btl-head); color: var(--btl-ink); }
.btlid-frame__sci { display: block; font-size: 13px; font-style: italic; color: var(--btl-muted); }

/* ---------- tool card ---------- */
.btlid-tool { background: #fff; border: 1px solid var(--btl-card-bd); border-radius: var(--btl-radius); box-shadow: 0 14px 36px rgba(20,53,42,.08); scroll-margin-top: 90px; overflow: hidden; }
.btlid-tool__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; background: var(--btl-deep); color: #fff; }
.btlid-tool__title { display: inline-flex; align-items: center; gap: 10px; font: 700 18px/1.2 var(--btl-head); }
.btlid-tool__title svg { color: #7ED6B4; }
.btlid .btlid-tool__reset { background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 999px; padding: 7px 14px; font: 600 13px/1 var(--btl-head); cursor: pointer; }
.btlid .btlid-tool__reset:hover { background: rgba(255,255,255,.22); }
.btlid-tool__body { padding: 22px; min-height: 340px; } /* reserved height = no CLS between steps */

.btlid-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 296px; padding: 28px 18px; background: var(--btl-drop); border: 2px dashed var(--btl-drop-bd); border-radius: 16px; transition: border-color .2s, background .2s; cursor: default; }
.btlid-drop.is-over { border-color: var(--btl-primary); background: var(--btl-soft); }
.btlid-drop__icon { color: var(--btl-primary); margin-bottom: 10px; }
.btlid .btlid-drop__text { margin: 0 0 16px; color: var(--btl-muted); }
.btlid-drop__text strong { color: var(--btl-ink); font: 700 17px/1.4 var(--btl-head); }
.btlid-drop__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btlid .btlid-hint { margin: 14px 0 0; font-size: 13px; color: var(--btl-muted); max-width: 420px; }

.btlid-details { display: grid; gap: 22px; }
.btlid-preview { aspect-ratio: 1 / 1; max-width: 320px; width: 100%; margin: 0 auto; border-radius: 16px; overflow: hidden; background: var(--btl-soft); border: 1px solid var(--btl-card-bd); }
.btlid-preview img { width: 100%; height: 100%; object-fit: cover; display: block; }
.btlid-fields { display: grid; gap: 14px; align-content: start; }
.btlid-field { display: grid; gap: 6px; margin: 0; }
.btlid-field > span { font: 600 14px/1.3 var(--btl-head); color: var(--btl-ink); }
.btlid-field em { font-weight: 400; color: var(--btl-muted); font-style: normal; }
.btlid .btlid-field input, .btlid .btlid-field select { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid #D9E5DE; border-radius: 12px; background: #fff; color: var(--btl-text); font-size: 15px; box-shadow: none; }
.btlid .btlid-field input:focus, .btlid .btlid-field select:focus { border-color: var(--btl-primary); outline: 0; box-shadow: 0 0 0 3px rgba(14,138,102,.15); }
.btlid-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }

.btlid-loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-height: 296px; text-align: center; }
.btlid-loading p { margin: 0; color: var(--btl-muted); font-weight: 500; }
.btlid-spinner { width: 52px; height: 52px; border-radius: 50%; border: 5px solid var(--btl-soft); border-top-color: var(--btl-primary); animation: btlid-spin .9s linear infinite; }
@keyframes btlid-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btlid-spinner { animation-duration: 2.5s; } .btlid .btlid-btn { transition: none; } }

.btlid-error { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--btl-red-bg); color: #9E2B20; border: 1px solid #F5C9C3; font-size: 14.5px; }

/* ---------- results ---------- */
.btlid-notice { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14.5px; }
.btlid-notice--info { background: #EEF5FB; color: #1F4E72; border: 1px solid #CFE2F1; }
.btlid-notice--warn { background: var(--btl-amber-bg); color: #7A4F0E; border: 1px solid #F3DDB1; }

.btlid-res__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; }
.btlid-res__kicker { display: block; font: 700 12px/1.3 var(--btl-head); letter-spacing: .06em; text-transform: uppercase; color: var(--btl-primary); }
.btlid .btlid-res__name { margin: 4px 0 2px; font: 800 clamp(24px, 4vw, 30px)/1.2 var(--btl-head); color: var(--btl-ink); }
.btlid-res__sci { display: block; font-style: italic; color: var(--btl-muted); }
.btlid-res__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.btlid .btlid-res__summary { margin: 16px 0; font-size: 16px; }

.btlid-conf { margin-top: 16px; }
.btlid-conf__label { display: flex; justify-content: space-between; font-size: 14px; color: var(--btl-muted); margin-bottom: 6px; }
.btlid-conf__label strong { color: var(--btl-ink); font-family: var(--btl-head); }
.btlid-conf__bar { height: 10px; border-radius: 999px; background: var(--btl-soft); overflow: hidden; }
.btlid-conf__fill { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--btl-primary), #34C79A); }

.btlid-infogrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 18px 0; }
.btlid-info { background: var(--btl-card); border: 1px solid var(--btl-card-bd); border-radius: 14px; padding: 12px 14px; }
.btlid-info__label { display: block; font: 700 11.5px/1.3 var(--btl-head); text-transform: uppercase; letter-spacing: .06em; color: var(--btl-primary-dk); margin-bottom: 4px; }
.btlid-info__value { font-size: 14.5px; }

.btlid-block { margin-top: 18px; }
.btlid .btlid-block__title { margin: 0 0 10px; font: 700 17px/1.3 var(--btl-head); color: var(--btl-ink); }
.btlid-cols { display: grid; gap: 4px 22px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.btlid .btlid-list { margin: 0; padding: 0; list-style: none; }
.btlid .btlid-list li { position: relative; margin: 0 0 8px; padding-left: 24px; font-size: 15px; }
.btlid .btlid-list li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--btl-primary); box-shadow: 0 0 0 3px var(--btl-soft); }
.btlid-block--action { background: var(--btl-card); border: 1px solid var(--btl-card-bd); border-radius: 14px; padding: 14px 16px 8px; }

.btlid-threats { display: grid; gap: 8px; }
.btlid-threat { display: grid; grid-template-columns: 1fr auto 78px; align-items: center; gap: 12px; padding: 9px 14px; background: var(--btl-card); border: 1px solid var(--btl-card-bd); border-radius: 12px; font-size: 14.5px; }
.btlid-threat__name { font-weight: 600; color: var(--btl-ink); }
.btlid-threat__meter { display: inline-flex; gap: 4px; }
.btlid-threat__meter i { width: 22px; height: 8px; border-radius: 99px; background: #DDE7E1; }
.btlid-threat__lvl { font: 600 13px/1 var(--btl-head); text-align: right; color: var(--btl-muted); }
.btlid-threat--low .btlid-threat__meter i:nth-child(1) { background: var(--btl-primary); }
.btlid-threat--moderate .btlid-threat__meter i:nth-child(-n+2) { background: var(--btl-amber); }
.btlid-threat--moderate .btlid-threat__lvl { color: #8A5A10; }
.btlid-threat--high .btlid-threat__meter i { background: var(--btl-red); }
.btlid-threat--high .btlid-threat__lvl { color: #9E2B20; }
.btlid .btlid-note { margin: 10px 0 0; font-size: 14px; color: var(--btl-muted); }

.btlid-looks { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.btlid-lookcard { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--btl-card-bd); border-left: 4px solid var(--btl-amber); border-radius: 12px; background: #fff; font-size: 14.5px; }
.btlid-lookcard strong { font-family: var(--btl-head); color: var(--btl-ink); }

.btlid .btlid-alts { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.btlid .btlid-alts li { display: flex; justify-content: space-between; gap: 10px; margin: 0; padding: 9px 14px; border: 1px solid var(--btl-card-bd); border-radius: 12px; font-size: 14.5px; }
.btlid-alts__name em { color: var(--btl-muted); }
.btlid-alts__pct { font: 700 14px/1.4 var(--btl-head); color: var(--btl-primary-dk); }

.btlid-fact { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--btl-soft); border: 1px solid var(--btl-soft-bd); font-size: 15px; }
.btlid-fact strong { color: var(--btl-primary-dk); }
.btlid .btlid-again { margin-top: 22px; }
.btlid .btlid-disclaimer { margin: 16px 0 0; font-size: 12.5px; color: var(--btl-muted); }

/* ---------- how-to ---------- */
.btlid-howto { padding: 44px 0 8px; text-align: center; scroll-margin-top: 90px; }
.btlid .btlid-howto__title { margin: 0 0 6px; font: 800 clamp(24px, 3.4vw, 32px)/1.25 var(--btl-head); color: var(--btl-ink); }
.btlid .btlid-howto__sub { margin: 0 0 24px; color: var(--btl-muted); }
.btlid .btlid-howto__grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 0; padding: 0; list-style: none; text-align: left; }
.btlid .btlid-howto__card { display: grid; gap: 6px; align-content: start; margin: 0; padding: 18px; background: var(--btl-card); border: 1px solid var(--btl-card-bd); border-radius: 16px; }
.btlid-howto__num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--btl-soft); color: var(--btl-primary); font: 800 15px/1 var(--btl-head); margin-bottom: 4px; }
.btlid-howto__card strong { font: 700 15.5px/1.3 var(--btl-head); color: var(--btl-ink); }
.btlid-howto__card > span:last-child { font-size: 14px; color: var(--btl-muted); }

/* ---------- responsive ---------- */
@media (min-width: 768px) {
	.btlid-hero { grid-template-columns: 1.1fr .9fr; gap: 48px; }
	.btlid-details { grid-template-columns: 300px 1fr; align-items: start; }
	.btlid-tool__body { padding: 28px; }
}
@media (max-width: 480px) {
	.btlid-tool__body { padding: 16px; }
	.btlid-hero__btns .btlid-btn, .btlid-drop__btns .btlid-btn { flex: 1 1 100%; }
	.btlid-threat { grid-template-columns: 1fr auto; }
	.btlid-threat__lvl { display: none; }
}

/* hero without image: centered single column */
.btlid-hero--noimg { grid-template-columns: 1fr !important; text-align: center; justify-items: center; }
.btlid-hero--noimg .btlid-hero__left { max-width: 760px; }
.btlid .btlid-hero--noimg .btlid-hero__sub { margin-inline: auto; }
.btlid-hero--noimg .btlid-hero__btns, .btlid .btlid-hero--noimg .btlid-hero__facts { justify-content: center; }
