/* Abhi Arya — Responsive Testing Lab 1.0.0. Every rule is scoped to .arl. */
.arl {
	--arl-bg: #F6F1E7; --arl-bed: #EEE6D6; --arl-card: #fff; --arl-line: #E5DCCB; --arl-line2: #D9CFBC;
	--arl-ink: #26231F; --arl-muted: #6B645A; --arl-accent: #C4572E; --arl-accent-d: #9A3F1D; --arl-accent-soft: #FBEBE3;
	--arl-ok: #2F7D4F; --arl-warn: #8A5A0B; --arl-err: #B3261E;
	box-sizing: border-box; width: 100vw; margin-left: calc(50% - 50vw); padding: 8px clamp(14px, 3vw, 48px) 28px;
	color: var(--arl-ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.45;
	background: var(--arl-bg);
}
body.arl-page #main, body.arl-page main, body.arl-page .site-main { overflow-x: clip; }
.arl *, .arl *::before, .arl *::after { box-sizing: border-box; }
.arl__inner { max-width: 1344px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.arl [hidden] { display: none !important; }
.arl__grow { flex: 1 1 auto; }
.arl__muted { color: var(--arl-muted); font-size: 12.5px; }

/* header */
.arl .arl__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.arl .arl__title { margin: 0; font-family: Fraunces, Georgia, serif; font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.1rem); letter-spacing: -.015em; line-height: 1.15; color: var(--arl-ink); }
.arl .arl__sub { margin: 4px 0 0; color: var(--arl-muted); font-size: 14.5px; max-width: 70ch; }
.arl .arl__chip { margin: 0; display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--arl-line); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; color: var(--arl-muted); }
.arl .arl__chip .arl-ico { color: var(--arl-accent); }
.arl-noscript { background: #fff; border: 1px solid var(--arl-line); padding: 12px 14px; border-radius: 10px; }

/* toolbar */
.arl .arl__bar { background: var(--arl-card); border: 1px solid var(--arl-line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 1px 2px rgba(60, 40, 20, .05); }
.arl .arl__urlrow { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; margin: 0; }
.arl .arl__field { flex: 1 1 280px; display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.arl label { font-size: 12px; font-weight: 600; color: var(--arl-ink); margin: 0; }
.arl .arl__help { margin: 0; font-size: 12px; color: var(--arl-muted); }
.arl .arl__tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-top: 1px solid #EFE7D8; padding-top: 12px; position: relative; }

.arl .arl-input { display: block; width: 100%; height: 38px; margin: 0; padding: 0 12px; border: 1px solid var(--arl-line2); border-radius: 9px; background: #FFFDF9; color: var(--arl-ink); font: inherit; font-size: 14px; box-shadow: none; }
.arl .arl-input--url { height: 44px; font-size: 15px; border-radius: 10px; padding: 0 14px; }
.arl .arl-px { display: none; }
.arl .arl-input--dim { width: 58px; height: 30px; padding: 0 4px; text-align: center; font-size: 13px; border-radius: 7px; -moz-appearance: textfield; }
.arl .arl-input--dim::-webkit-outer-spin-button, .arl .arl-input--dim::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.arl .arl-input--scale { width: auto; height: 30px; padding: 0 6px; font-size: 12.5px; border-radius: 7px; }
.arl .arl-input[aria-invalid="true"] { border: 2px solid var(--arl-err); }

.arl .arl-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 14px; margin: 0; border: 1px solid var(--arl-line2); border-radius: 9px; background: #fff; color: var(--arl-ink); font: inherit; font-size: 14px; font-weight: 500; line-height: 1; cursor: pointer; text-transform: none; letter-spacing: 0; box-shadow: none; text-decoration: none; }
.arl .arl-btn:hover { background: #FBF7EF; border-color: #C9BDA6; }
.arl .arl-btn--lg { height: 44px; padding: 0 20px; border-radius: 10px; }
.arl .arl-btn--sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.arl .arl-btn--primary { background: var(--arl-accent); border-color: var(--arl-accent); color: #fff; font-weight: 600; }
.arl .arl-btn--primary:hover { background: var(--arl-accent-d); border-color: var(--arl-accent-d); }
.arl .arl-count { color: var(--arl-muted); font-weight: 400; }
.arl .arl-ibtn { display: inline-grid; place-items: center; width: 30px; height: 30px; padding: 0; margin: 0; border: 1px solid var(--arl-line); border-radius: 8px; background: #fff; color: var(--arl-ink); cursor: pointer; box-shadow: none; }
.arl .arl-ibtn:hover { background: #FBF7EF; border-color: #C9BDA6; }
.arl .arl-ibtn:disabled { opacity: .4; cursor: not-allowed; }
.arl .arl-ibtn--plain { border-color: transparent; background: transparent; margin-left: auto; }
.arl .arl-ico { flex: none; }

.arl .arl-check { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 400; color: var(--arl-muted); cursor: pointer; }
.arl .arl-check input { width: 16px; height: 16px; margin: 0; accent-color: var(--arl-accent); }

.arl .arl-sync { display: inline-flex; align-items: center; gap: 10px; background: var(--arl-accent-soft); border: 1px solid #F0CDBB; border-radius: 999px; padding: 4px 12px 4px 14px; }
.arl .arl-sync__lbl { font-weight: 600; font-size: 13px; }
.arl .arl-sync__state { font-weight: 600; font-size: 12.5px; color: var(--arl-accent-d); min-width: 24px; }
.arl .arl-sync__state.is-off { color: var(--arl-muted); }
.arl .arl-switch { position: relative; width: 44px; height: 24px; padding: 0; margin: 0; border: 0; border-radius: 999px; background: #B8AD99; cursor: pointer; box-shadow: none; }
.arl .arl-switch.is-on { background: var(--arl-accent); }
.arl .arl-switch__knob { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.arl .arl-switch.is-on .arl-switch__knob { transform: translateX(20px); }

/* add-device popover */
.arl .arl__addwrap { position: relative; }
.arl .arl-pop { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(360px, 90vw); background: #fff; border: 1px solid var(--arl-line2); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 10px 30px rgba(60, 40, 20, .18); }
.arl .arl-pop__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.arl .arl-pop__row > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.arl .arl-pop__row--end { display: flex; justify-content: flex-end; }

/* status strip + notices */
.arl .arl__caps { display: flex; gap: 8px 10px; flex-wrap: wrap; align-items: center; min-height: 30px; }
.arl .arl-cap { display: inline-flex; align-items: center; gap: 7px; background: #fff; border: 1px solid var(--arl-line); border-radius: 999px; padding: 5px 12px; font-size: 12.5px; }
.arl .arl-cap b { font-weight: 600; }
.arl .arl-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--arl-ok); }
.arl .arl-cap--warn .arl-dot { background: #B7791F; }
.arl .arl__notice { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-radius: 10px; padding: 9px 12px; font-size: 13px; border: 1px solid var(--arl-line); background: #fff; }
.arl .arl__notice--warn { background: #FFF6E5; border-color: #EBCB8B; color: #5A4210; }
.arl .arl__notice--error { background: #FDECEA; border-color: #F2B8B5; color: #7A1912; }
.arl .arl__notice--info { background: #fff; }
.arl .arl__notice-text { flex: 1 1 260px; }

/* stage */
.arl .arl__stage { background: var(--arl-bed); border: 1px solid var(--arl-line); border-radius: 16px; padding: 14px; display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
@media (max-width: 900px) {
	.arl .arl__stage { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
	.arl .arl-card { flex: none; scroll-snap-align: start; }
}
.arl .arl-card { flex: none; background: #fff; border: 1px solid #E0D6C3; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.arl .arl-card.is-master { border: 2px solid var(--arl-accent); padding: 11px; }
.arl .arl-card__head { display: flex; align-items: center; gap: 6px; }
.arl .arl-card__icon { display: inline-flex; color: var(--arl-ink); }
.arl .arl-card__name { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.arl .arl-badge { background: var(--arl-accent); color: #fff; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.arl .arl-card__dims { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 12.5px; color: var(--arl-muted); }
.arl .arl-card__scale { font-weight: 600; color: var(--arl-ink); }

.arl .arl-box { position: relative; align-self: center; overflow: hidden; background: #fff; border: 1px solid var(--arl-line); border-radius: 6px; max-width: 100%; }
.arl .arl-frame { position: absolute; top: 0; left: 0; border: 0; background: #fff; transform-origin: 0 0; max-width: none; display: block; }
.arl .arl-ov { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 10px; text-align: center; background: #FBF7EF; }
.arl .arl-ov--loading { background: rgba(251, 247, 239, .92); }
.arl .arl-ov__in { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 100%; }
.arl .arl-ov__t { margin: 0; font-weight: 600; font-size: 12.5px; line-height: 1.4; color: var(--arl-ink); }
.arl .arl-ov__s { margin: 0; font-size: 12px; color: var(--arl-muted); }
.arl .arl-ov__acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.arl .arl-ov .arl-ico { color: var(--arl-accent); }
.arl .arl-spin { animation: arl-spin .9s linear infinite; }
@keyframes arl-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .arl .arl-spin { animation: none; } .arl .arl-switch__knob { transition: none; } }
.arl .arl-shot { position: absolute; z-index: 2; right: 6px; bottom: 6px; width: 30px; height: 30px; display: grid; place-items: center; padding: 0; margin: 0; border: 1px solid var(--arl-line2); border-radius: 8px; background: #fff; color: var(--arl-ink); cursor: pointer; box-shadow: 0 1px 3px rgba(60, 40, 20, .18); }
.arl .arl-shot:hover { background: #FBF7EF; }
.arl .arl-hint { display: flex; gap: 6px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 11.5px; color: var(--arl-muted); text-align: center; }
.arl .arl-link { background: none; border: 0; padding: 0; margin: 0; color: var(--arl-accent-d); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* presets */
.arl .arl__presets { background: #fff; border: 1px solid var(--arl-line); border-radius: 14px; padding: 12px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.arl .arl__chips { display: contents; }
.arl .arl-chipbtn { height: 32px; padding: 0 12px; margin: 0; border: 1px solid var(--arl-line2); background: #FFFDF9; border-radius: 999px; font: inherit; font-size: 12.5px; color: var(--arl-ink); cursor: pointer; }
.arl .arl-chipbtn:hover { background: var(--arl-accent-soft); border-color: var(--arl-accent); }

/* focus + contrast */
.arl button:focus-visible, .arl input:focus-visible, .arl select:focus-visible, .arl .arl-stage:focus-visible, .arl iframe:focus-visible {
	outline: 3px solid #1F5FBF; outline-offset: 2px;
}
.arl .arl-btn--primary:focus-visible { outline-color: #1F5FBF; }
@media (max-width: 600px) { .arl .arl__tools > * { flex: 0 1 auto; } .arl .arl-sync { margin-left: auto; } }

/* Compact page heading (same look as the other Abhi Arya tool pages); applies only to pages carrying this tool */
body.arl-page .intro { padding-top: 20px !important; padding-bottom: 18px !important; }
body.arl-page .intro .wrap { max-width: 1180px !important; }
body.arl-page .intro .crumbs { margin-bottom: 10px !important; }
body.arl-page .intro .intro__title { font-size: clamp(1.65rem, 1.05rem + 1.55vw, 2.3rem) !important; line-height: 1.15 !important; letter-spacing: -.015em !important; font-weight: 600 !important; max-width: none !important; margin: 0 !important; }
body.arl-page .intro .intro__lead { font-size: 1rem !important; line-height: 1.55 !important; max-width: 72ch !important; margin-top: .4rem !important; margin-bottom: 0 !important; }
@media (max-width: 600px) { body.arl-page .intro { padding-top: 14px !important; padding-bottom: 12px !important; } body.arl-page .intro .crumbs { margin-bottom: 8px !important; } body.arl-page .intro .intro__lead { font-size: .95rem !important; } }

/* v1.2 */
.arl .arl-scroller { position: absolute; inset: 0; overflow-x: auto; overflow-y: hidden; }
.arl .arl-sizer { position: relative; }
.arl .arl-box.is-clipped { border-bottom-color: var(--arl-line2); }
.arl .arl-orient { font-size: 11px; font-weight: 600; color: var(--arl-accent); background: var(--arl-accent-soft); border-radius: 999px; padding: 2px 8px; }
.arl .arl-chipbtn__dim { margin-left: 6px; font-size: 11px; color: var(--arl-muted); }
.arl .arl-ibtn--rot { width: 30px; }
.arl button, .arl select, .arl .arl-chipbtn { cursor: pointer; }
.arl .arl-card__head, .arl label, .arl .arl-x, .arl .arl-px { cursor: default; }
.arl .arl-input--dim { cursor: text; caret-color: var(--arl-accent); }
.arl .arl-pop__row > div { min-width: 0; }
