/* ═══════════════════════════════════════════════════════════════════════
   FacilHook: URL temporária que captura requisições e mostra tudo ao vivo. Visual de ferramenta de desenvolvedor, calmo e legível, com
   tema claro por padrão, escuro quando o sistema pede (prefers-color-scheme) e as duas escolhas manuais (html[data-theme]).
   Os tokens de cada tema ficam nos três blocos marcados `@theme`: test/facilhook-page.test.js confere o contraste de cada par (texto,
   botão, selos de método) e que os três blocos declaram as mesmas variáveis. Nenhuma cor é escrita fora desses blocos.
   Não depende de tokens.css nem de Bootstrap. Movimento: juice.js põe data-motion="reduced" no <html>.
   ═══════════════════════════════════════════════════════════════════════ */

/* @theme light */
:root {
	color-scheme: light;
	--bg: #f7f6fb;
	--surface: #ffffff;
	--surface-2: #efedf7;
	--ink: #15121f;
	--ink-2: #4a4660;
	--ink-3: #625e78;
	--line: #e2dff0;
	--line-2: #c8c3dc;
	--btn: #5a32c8;
	--btn-hover: #4a24b0;
	--btn-ink: #ffffff;
	--accent-text: #5a32c8;
	--danger: #b3261e;
	--danger-ink: #ffffff;
	--ok: #0b7a3a;
	--warn: #8a5300;
	--logo-1: #7c4dff;
	--logo-2: #22b8e0;
	--code-bg: #f3f1fa;
	--m-get: #0a6e34;
	--m-post: #1a5fd0;
	--m-put: #6d28d9;
	--m-patch: #8a5300;
	--m-delete: #b3261e;
	--m-head: #0e6f87;
	--m-other: #55516b;
	--shadow: 0 1px 2px rgb(21 18 31 / .05), 0 8px 24px -12px rgb(21 18 31 / .14);
}
@media (prefers-color-scheme: dark) {
	/* @theme dark */
	:root:where(:not([data-theme="light"])) {
		color-scheme: dark;
		--bg: #0e0d15;
		--surface: #181623;
		--surface-2: #221f31;
		--ink: #f2f0fa;
		--ink-2: #c8c4da;
		--ink-3: #a29eb8;
		--line: #2b2840;
		--line-2: #3b3754;
		--btn: #6d44de;
		--btn-hover: #7a54e8;
		--btn-ink: #ffffff;
		--accent-text: #b9a0ff;
		--danger: #ff8f86;
		--danger-ink: #1a0a09;
		--ok: #5bd08a;
		--warn: #f0b44c;
		--logo-1: #8b5cf6;
		--logo-2: #22d3ee;
		--code-bg: #110f1a;
		--m-get: #5bd08a;
		--m-post: #86b6ff;
		--m-put: #c7a9ff;
		--m-patch: #f0b44c;
		--m-delete: #ff8f86;
		--m-head: #66d2ea;
		--m-other: #b4b0c8;
		--shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .6);
	}
}
/* @theme dark */
:root[data-theme="dark"] {
	color-scheme: dark;
	--bg: #0e0d15;
	--surface: #181623;
	--surface-2: #221f31;
	--ink: #f2f0fa;
	--ink-2: #c8c4da;
	--ink-3: #a29eb8;
	--line: #2b2840;
	--line-2: #3b3754;
	--btn: #6d44de;
	--btn-hover: #7a54e8;
	--btn-ink: #ffffff;
	--accent-text: #b9a0ff;
	--danger: #ff8f86;
	--danger-ink: #1a0a09;
	--ok: #5bd08a;
	--warn: #f0b44c;
	--logo-1: #8b5cf6;
	--logo-2: #22d3ee;
	--code-bg: #110f1a;
	--m-get: #5bd08a;
	--m-post: #86b6ff;
	--m-put: #c7a9ff;
	--m-patch: #f0b44c;
	--m-delete: #ff8f86;
	--m-head: #66d2ea;
	--m-other: #b4b0c8;
	--shadow: 0 1px 2px rgb(0 0 0 / .4), 0 8px 24px -12px rgb(0 0 0 / .6);
}

:root {
	--accent: var(--accent-text); /* os números abertos (usage.css) usam --accent */
	--radius: 16px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0;
	display: flex;
	flex-direction: column;
	overflow-x: hidden;
	background: var(--bg);
	color: var(--ink);
	font: 400 1rem/1.5 var(--font);
	-webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--accent-text); }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
code, .mono { font-family: var(--mono); }
.i { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flip { transform: scaleX(-1); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--btn) 75%, var(--bg)); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
kbd { display: inline-block; min-width: 1.6em; padding: .05em .45em; border: 1px solid var(--line-2); border-bottom-width: 2px; border-radius: 6px; background: var(--surface); font: 600 .78em/1.5 var(--font); text-align: center; }

/* ───────── Esqueleto de carregamento ───────── */
.sk { display: block; border-radius: 8px; background: linear-gradient(100deg, var(--surface-2) 30%, var(--line) 50%, var(--surface-2) 70%) 0 0 / 220% 100%; animation: shimmer 1.4s linear infinite; }
.sk--badge { width: 52px; height: 22px; flex: none; }
.sk--line { height: 14px; width: 60%; }
.sk--short { width: 36%; }
@keyframes shimmer { to { background-position: -220% 0; } }

/* ───────── Topo ───────── */
.top { display: flex; align-items: center; justify-content: space-between; gap: .8rem; width: min(100%, 1180px); margin: 0 auto; padding: max(.8rem, env(safe-area-inset-top)) 16px .6rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; min-height: 40px; padding: .35rem .95rem .35rem .75rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .88rem; font-weight: 600; text-decoration: none; transition: border-color .2s, color .2s; }
.pill:hover { border-color: var(--line-2); color: var(--ink); }
.brand { display: flex; align-items: center; gap: .5rem; font: 800 1.25rem/1 var(--font); letter-spacing: -.02em; }
.brand__logo { width: 1.8rem; height: 1.8rem; stroke: none; }
.top__tools { display: flex; gap: .3rem; }
.tool { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink-2); transition: background .2s, color .2s; }
.tool:hover { background: var(--surface-2); color: var(--ink); }
.tool[aria-pressed="false"] { color: var(--ink-3); opacity: .65; }
.tool__badge { position: absolute; top: 2px; right: 1px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--btn); color: var(--btn-ink); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center; }

/* ───────── Página ───────── */
.app { flex: 1; width: min(100%, 1180px); margin: 0 auto; padding: .4rem 16px 2rem; }
.nojs { padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.banner { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid color-mix(in srgb, var(--warn) 55%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--warn) 9%, var(--surface)); font-size: .92rem; }
.card { margin: 0 0 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: .8rem; margin: 0 0 .6rem; }
.card h2 { font-size: 1.15rem; font-weight: 800; letter-spacing: -.01em; }
.sub { margin: 1.1rem 0 .3rem; font-size: 1rem; font-weight: 700; }
.fine { color: var(--ink-2); font-size: .86rem; line-height: 1.45; margin: .5rem 0; }
.note { margin: 0 0 .6rem; padding: .5rem .75rem; border-radius: 10px; background: color-mix(in srgb, var(--warn) 10%, var(--surface)); color: var(--ink); font-size: .86rem; }
.notes { display: grid; gap: .3rem; margin: .5rem 0 0; color: var(--ink-2); font-size: .84rem; }
.notes li::before { content: '• '; }

/* ───────── Botões, campos e peças ───────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .5rem 1.1rem; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--ink); font-weight: 600; font-size: .95rem; transition: background .2s, border-color .2s, transform .15s; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; }
.btn--primary { background: var(--btn); color: var(--btn-ink); }
.btn--primary:hover:not(:disabled) { background: var(--btn-hover); }
.btn--ghost { border-color: var(--line-2); background: var(--surface); }
.btn--ghost:hover:not(:disabled) { background: var(--surface-2); }
.btn--danger { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); color: var(--danger); background: var(--surface); }
.btn--danger:hover:not(:disabled) { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); }
.btn--sm { min-height: 36px; padding: .3rem .8rem; font-size: .86rem; border-radius: 10px; }
.btn--lg { min-height: 52px; padding: .6rem 1.4rem; font-size: 1.05rem; }
.btn[aria-pressed="true"]:not(.btn--primary) { border-color: var(--btn); background: color-mix(in srgb, var(--btn) 9%, var(--surface)); }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); transition: background .2s, border-color .2s; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.icon-btn--sm { width: 40px; height: 40px; border-radius: 10px; }
.field { width: 100%; min-height: 46px; padding: .55rem .8rem; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); color: var(--ink); font-size: 1rem; }
textarea.field { min-height: 0; resize: vertical; line-height: 1.45; }
.field:focus-visible { outline-offset: 0; }
.field-label { display: block; margin: .9rem 0 .35rem; font-size: .86rem; font-weight: 700; color: var(--ink-2); }
.check { display: flex; align-items: center; gap: .6rem; min-height: 40px; margin: .4rem 0; font-size: .9rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; accent-color: var(--btn); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); max-width: 100%; }
.seg__btn { flex: 1; min-height: 38px; padding: .3rem .8rem; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-checked="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgb(0 0 0 / .08); }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.chip { display: inline-flex; align-items: center; gap: .4rem; min-height: 28px; padding: .15rem .65rem; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .8rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.chip--time::before, .chip--idle::before { display: none; }
.chip--live { color: var(--ok); }
.chip--live::before { animation: pulse 1.8s ease-in-out infinite; }
.chip--wait, .chip--warn { color: var(--warn); }
.chip--bad { color: var(--danger); }
.chip--poll { color: var(--accent-text); }
.chip--dead { color: var(--ink-3); }
.chip--dead::before { display: none; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.8); } }
.chip-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 3px; border: 1px solid transparent; border-radius: 12px; background: transparent; }
.chip-btn[aria-pressed="true"] { border-color: var(--btn); background: color-mix(in srgb, var(--btn) 10%, var(--surface)); }
.more { margin: 1rem 0 .4rem; }
.more summary, .tester summary { display: flex; align-items: center; gap: .6rem; min-height: 40px; cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: .92rem; list-style: none; }
.more summary::-webkit-details-marker, .tester summary::-webkit-details-marker { display: none; }
.more summary::before, .tester summary::before { content: ''; flex: none; width: .5em; height: .5em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
details[open] > summary::before { transform: rotate(45deg); }
.more summary:hover, .tester summary:hover { color: var(--ink); }

/* ───────── Início ───────── */
.hero h2 { font-size: 1.6rem; letter-spacing: -.02em; line-height: 1.2; }
.lead { margin: .5rem 0 1rem; color: var(--ink-2); font-size: 1.02rem; max-width: 46rem; }
.create { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .6rem; }
.steps { display: grid; gap: .3rem; margin: 1.1rem 0 .8rem; padding-left: 1.3rem; list-style: decimal; color: var(--ink-2); font-size: .95rem; }
.privacy { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1rem; padding: .7rem .9rem; border-radius: 12px; background: var(--surface-2); color: var(--ink-2); font-size: .88rem; line-height: 1.45; }
.privacy .i { margin-top: .15em; color: var(--accent-text); }
.rf-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: .6rem; }
.rf { min-width: 0; }
.hists { display: grid; gap: .5rem; }
.hist { display: flex; align-items: center; gap: .4rem; padding: .3rem .4rem .3rem .3rem; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.hist.is-current { border-color: var(--btn); background: color-mix(in srgb, var(--btn) 7%, var(--surface)); }
.hist.is-dead .hist__name { color: var(--ink-2); }
.hist__main { display: grid; flex: 1; gap: .15rem; min-width: 0; min-height: 56px; padding: .4rem .6rem; border: 0; border-radius: 10px; background: transparent; text-align: left; }
.hist__main:hover .hist__name { text-decoration: underline; }
.hist__name { font-weight: 700; overflow-wrap: anywhere; }
.hist__url { color: var(--ink-3); font-size: .78rem; overflow-wrap: anywhere; }
.hist__main .chip { justify-self: start; margin-top: .1rem; }
.hist__actions { display: flex; gap: .3rem; flex: none; }

/* ───────── Estado vazio ───────── */
.empty { display: grid; justify-items: center; gap: .5rem; padding: 1.4rem .5rem; text-align: center; }
.empty__art { width: 72px; height: 72px; fill: none; stroke: var(--accent-text); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; opacity: .85; }
.empty__title { font-weight: 800; font-size: 1.05rem; }
.empty__text { max-width: 34rem; color: var(--ink-2); font-size: .92rem; }

/* ───────── O gancho aberto ───────── */
.urlcard__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; margin: 0 0 .7rem; }
.urlcard__head h2 { overflow-wrap: anywhere; }
.urlbox { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; }
.urlcard__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.ended { margin-top: .8rem; padding: .8rem 1rem; border: 1px solid color-mix(in srgb, var(--warn) 55%, var(--line)); border-radius: 12px; background: color-mix(in srgb, var(--warn) 9%, var(--surface)); }
.ended p { margin: 0 0 .6rem; font-size: .92rem; }
.tester { padding: .4rem 1rem; }
.tester[open] { padding-bottom: 1rem; }
.tester__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin-top: .4rem; }
.tester__form, .tester__out, .panel { min-width: 0; }
.tester__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .7rem; }
.panel__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; margin: 0 0 .6rem; }
.panel__bar .fine { margin: 0; }
.panel__actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.code { margin: .4rem 0 0; padding: .8rem .9rem; max-height: 26rem; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--code-bg); color: var(--ink); font: 400 .84rem/1.55 var(--mono); white-space: pre; tab-size: 2; }
.code--sm { font-size: .78rem; }

/* ───────── Lista e detalhe ───────── */
.panes { display: grid; gap: 1rem; align-items: start; }
.list-pane, .detail-pane { min-width: 0; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.filters { display: grid; gap: .6rem; }
.search { position: relative; }
.search .i { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .field { padding-left: 2.4rem; }
.filters__row { display: flex; flex-wrap: wrap; gap: .4rem; }
.counts { margin: .7rem 0 .4rem; color: var(--ink-2); font-size: .84rem; font-variant-numeric: tabular-nums; }
.newpill { position: sticky; top: .3rem; z-index: 2; display: block; margin: 0 auto .4rem; padding: .3rem .9rem; border: 0; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-weight: 700; font-size: .84rem; box-shadow: var(--shadow); }
.reqs { display: grid; gap: .35rem; max-height: 62vh; overflow-y: auto; padding: 2px; }
.req { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.req--sk { display: flex; align-items: center; gap: .7rem; min-height: 58px; padding: .5rem .7rem; }
.req.is-selected { border-color: var(--btn); background: color-mix(in srgb, var(--btn) 8%, var(--surface)); }
.req__btn { display: flex; align-items: center; gap: .7rem; width: 100%; min-height: 58px; padding: .5rem .7rem; border: 0; border-radius: 11px; background: transparent; text-align: left; }
.req__btn:hover { background: var(--surface-2); }
.req__text { display: grid; gap: .1rem; min-width: 0; flex: 1; }
.req__path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 .88rem/1.35 var(--mono); }
.req__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .55rem; color: var(--ink-3); font-size: .76rem; font-variant-numeric: tabular-nums; }
.flag { padding: 0 .4rem; border-radius: 6px; background: var(--surface-2); color: var(--ink-2); font-weight: 600; }
.flag--refused { color: var(--danger); }
.flag--cut { color: var(--warn); }
.mth { display: inline-block; min-width: 3.6rem; padding: .22rem .45rem; border-radius: 8px; background: color-mix(in srgb, var(--m, var(--m-other)) 14%, var(--surface)); color: var(--m, var(--m-other)); font: 700 .72rem/1.2 var(--mono); text-align: center; flex: none; }
.mth--get { --m: var(--m-get); } .mth--post { --m: var(--m-post); } .mth--put { --m: var(--m-put); } .mth--patch { --m: var(--m-patch); }
.mth--delete { --m: var(--m-delete); } .mth--head, .mth--options { --m: var(--m-head); } .mth--other { --m: var(--m-other); }
.detail__empty { display: grid; justify-items: center; gap: .5rem; padding: 2rem 1rem; text-align: center; }
.detail__head { display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem; }
.detail__back { display: none; }
.detail__title { display: flex; align-items: center; gap: .6rem; min-width: 0; font-size: 1rem; font-weight: 700; }
.detail__path { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; font-weight: 500; }
.tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; margin: 0 0 .9rem; padding: 4px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.tab { min-height: 42px; padding: .4rem .3rem; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); font-weight: 600; font-size: .92rem; transition: background .2s, color .2s; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { background: var(--btn); color: var(--btn-ink); }
.kvs { display: grid; gap: .1rem; }
.kv { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.kv:first-child { border-top: 0; }
.kv dt { color: var(--ink-2); font-size: .84rem; font-weight: 600; }
.kv dd { overflow-wrap: anywhere; font-size: .92rem; }
.tbl { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: .86rem; }
.tbl th, .tbl td { padding: .45rem .5rem; border-top: 1px solid var(--line); text-align: left; vertical-align: top; overflow-wrap: anywhere; word-break: break-word; }
.tbl thead th { border-top: 0; color: var(--ink-2); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.tbl__k { width: 38%; font: 600 .82rem/1.45 var(--mono); }
.tbl__v { font-family: var(--mono); font-size: .82rem; }

/* ───────── Rodapé, avisos e diálogos ───────── */
.usage-wrap { margin-top: 1.6rem; color: var(--ink); }
.foot { width: min(100%, 1180px); margin: 0 auto; padding: 1rem 16px max(1.6rem, env(safe-area-inset-bottom)); color: var(--ink-2); font-size: .85rem; text-align: center; }
.foot p + p { margin-top: .4rem; }
.foot a { color: var(--ink-2); }
.foot__keys { color: var(--ink-3); }
.toasts { position: fixed; z-index: 50; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); display: grid; gap: .5rem; width: min(92vw, 28rem); pointer-events: none; }
.toast { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem 1rem; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow); font-size: .92rem; font-weight: 500; pointer-events: auto; animation: toast-in .25s var(--ease) both; }
.toast--bad { background: var(--danger); color: var(--danger-ink); }
.toast.is-out { animation: toast-out .2s ease both; }
.toast__btn { flex: none; min-height: 32px; padding: .2rem .7rem; border: 1px solid currentColor; border-radius: 8px; background: transparent; font-weight: 700; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px); } }
.dlg { width: min(94vw, 34rem); max-height: 92dvh; padding: 0; border: 1px solid var(--line-2); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -20px rgb(0 0 0 / .5); }
.dlg--sm { width: min(94vw, 26rem); }
.dlg::backdrop { background: rgb(0 0 0 / .45); }
.dlg[open] { animation: dlg-in .22s var(--ease) both; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.dlg__box { display: flex; flex-direction: column; max-height: 92dvh; margin: 0; }
.dlg__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem .4rem; }
.dlg__head h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; }
.dlg__body { flex: 1; overflow-y: auto; padding: .6rem 1.2rem 1rem; }
.dlg__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .5rem; padding: .8rem 1.2rem 1.1rem; border-top: 1px solid var(--line); }

/* ───────── Largura ───────── */
@media (min-width: 861px) {
	.panes { grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); }
	.panes[data-empty="1"] { grid-template-columns: minmax(0, 1fr); }
	.panes[data-empty="1"] .detail-pane { display: none; }
	.detail-pane { position: sticky; top: .8rem; }
	.tester__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
	.hero { padding: 1.4rem; }
}
@media (max-width: 860px) {
	.panes[data-detail="open"] .list-pane { display: none; }
	.panes[data-detail="closed"] .detail-pane { display: none; }
	.detail__back { display: inline-grid; }
	.reqs { max-height: none; overflow: visible; }
	.kv { grid-template-columns: 1fr; gap: .1rem; }
}
@media (max-width: 480px) {
	.pill span { display: none; }
	.pill { padding: .35rem .75rem; }
	.card, .list-pane, .detail-pane { padding: .85rem; }
	.create { grid-template-columns: 1fr; }
	.urlbox { grid-template-columns: 1fr; }
	.hero h2 { font-size: 1.35rem; }
	.tab { font-size: .84rem; }
	.tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* cinco abas em duas linhas: cabe sem rolar */
	.brand { font-size: 1.1rem; }
}

/* ───────── Movimento, contraste forçado ───────── */
html[data-motion="reduced"] .toast, html[data-motion="reduced"] .dlg[open], html[data-motion="reduced"] .chip--live::before, html[data-motion="reduced"] .sk { animation: none; }
html[data-motion="reduced"] .tab, html[data-motion="reduced"] .btn, html[data-motion="reduced"] .more summary::before, html[data-motion="reduced"] .tester summary::before { transition: none; }
@media (prefers-reduced-motion: reduce) { .toast, .dlg[open], .chip--live::before, .sk { animation: none; } .tab, .btn, .more summary::before, .tester summary::before { transition: none; } }
@media (forced-colors: active) {
	.req.is-selected, .hist.is-current { outline: 2px solid Highlight; }
	.mth { border: 1px solid ButtonText; }
	.tab[aria-selected="true"] { background: Highlight; color: HighlightText; }
}
