/* NexHub HTTP (ported from HttpNex: tools.css + httptools.css + tn-/hn- rules of httpnex.css) */
/* HttpNex: home, category and tool pages, the generic tool UI, wide ad formats (billboard, half page), sticky bar, diff */
.wrap { max-width: 1240px; }
.tn-logo { background: var(--grad); color: #fff; }
.hdr .search-trigger { min-width: 200px; }
@media (max-width: 1180px) { .hdr-nav > a { display: none; } }
@media (max-width: 640px) { .hdr .search-trigger .lbl { display: none; } .hdr .search-trigger { min-width: 0; } }
.tn-mega { flex-direction: column; min-width: 260px; }
.tn-mega a { display: flex; gap: 10px; align-items: center; }

/* hero */
.tn-hero { padding: 54px 0 26px; background: radial-gradient(1200px 380px at 50% -10%, color-mix(in srgb, var(--primary) 16%, transparent), transparent); text-align: center; }
.tn-hero h1 { font-size: clamp(32px, 5.2vw, 56px); letter-spacing: -.035em; line-height: 1.05; margin: 14px auto 14px; max-width: 900px; }
.tn-hero .lead { color: var(--text-2); max-width: 760px; margin: 0 auto; font-size: 17px; }
.tn-hero-search { position: relative; display: flex; align-items: center; gap: 10px; max-width: 680px; margin: 26px auto 0; padding: 0 16px; height: 58px;
  border-radius: 16px; background: var(--elev); border: 1.5px solid var(--line-2); box-shadow: var(--shadow-pop); }
.tn-hero-search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-100), var(--shadow-pop); }
.tn-hero-search input { flex: 1; border: 0; background: none; outline: none; font-size: 17px; min-width: 0; }
.tn-hero-search .ico { color: var(--muted); }
.tn-search-res { position: relative; max-width: 680px; margin: 8px auto 0; background: var(--elev); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-pop); padding: 6px; text-align: left; z-index: 20; }
.tn-search-res a { display: flex; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.tn-search-res a.on, .tn-search-res a:hover { background: var(--primary-50); }
.tn-search-res small { display: block; color: var(--muted); font-size: 12.5px; }
.tn-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chip { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--elev); color: var(--text-2); font-size: 13.5px; font-weight: 500; cursor: pointer; text-decoration: none; }
.chip:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* sections + tool cards */
.tn-cat, .tn-mine { padding-top: 26px; }
.tn-sec-head { display: flex; align-items: baseline; gap: 14px; justify-content: space-between; flex-wrap: wrap; }
.tn-sec-head h2 { display: flex; gap: 10px; align-items: center; margin: 0; font-size: 22px; letter-spacing: -.01em; }
.tn-sec-head h2 .ico { color: var(--primary); }
.tn-cat-blurb { margin: 4px 0 14px; }
.tn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tn-grid-lg { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 18px; }
.tn-card { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 40px 14px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--elev); color: var(--text); text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s; }
.tn-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); text-decoration: none; }
.tn-card-ico { flex: none; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--grad-soft); color: var(--primary); }
.tn-card-txt { display: flex; flex-direction: column; min-width: 0; }
.tn-card-txt b { font-size: 15px; line-height: 1.3; }
.tn-card-txt span { font-size: 13px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.tn-fav { position: absolute; top: 8px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 17px; cursor: pointer; border-radius: 8px; width: 28px; height: 28px; opacity: .55; }
.tn-card:hover .tn-fav, .tn-fav.on { opacity: 1; }
.tn-fav.on { color: #f59e0b; }
.tn-fav:hover { background: var(--surface-2); color: #f59e0b; }
.tn-card-ad { margin: 0; }
.tn-card-ad .ad-native { height: 100%; min-height: 100%; }
.tn-why { padding: 46px 0 10px; }
.tn-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.tn-why .card .ico { color: var(--primary); width: 26px; height: 26px; }
.tn-why h3 { margin: 10px 0 6px; font-size: 17px; }
.tn-why p { margin: 0; color: var(--muted); font-size: 14px; }

/* page + tool layout */
.tn-page { padding-top: 18px; padding-bottom: 30px; }
.tn-crumb { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.tn-crumb a { color: var(--muted); }
.tn-h1 { display: flex; align-items: center; gap: 12px; font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -.025em; margin: 10px 0 6px; }
.tn-h1 .ico { color: var(--primary); width: 30px; height: 30px; }
.tn-title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: space-between; }
.tn-fav-btn.on { color: #b45309; border-color: #f59e0b; background: color-mix(in srgb, #f59e0b 12%, var(--elev)); }
.tn-summary { margin: 0 0 6px; font-size: 16px; }
.tn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 26px; align-items: start; margin-top: 8px; }
.tn-side-sticky { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.tn-side .ad-slot { margin: 0; }
.tn-side-list { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.tn-side-list b { margin-bottom: 4px; }
@media (max-width: 1080px) { .tn-layout { grid-template-columns: 1fr; } .tn-side-sticky { position: static; } .tn-side-list { display: none; } }

/* generic tool UI */
.tn-tool { background: var(--elev); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden; }
.tn-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--surface); }
.tn-opts [hidden] { display: none !important; }
.tn-chk, .tn-sel, .tn-num, .tn-txt { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.tn-chk { cursor: pointer; }
.tn-chk input { width: 16px; height: 16px; accent-color: var(--primary); margin: 0; }
.tn-sel select, .tn-num input, .tn-txt input { height: 34px; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); color: var(--text); padding: 0 9px; font-size: 13.5px; }
.tn-num input { width: 84px; }
.tn-txt input { width: 150px; font-family: var(--font-mono); }
.tn-sel select:focus, .tn-num input:focus, .tn-txt input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.tn-seg { flex-wrap: wrap; }
.tn-seg button { padding: 7px 12px; font-size: 13.5px; }
.tn-seg button.on { background: var(--primary); color: #fff; }
:root[data-theme="dark"] .tn-seg button.on { color: #120a24; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tn-seg button.on { color: #120a24; } }
.tn-presets { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tn-io { display: grid; grid-template-columns: 1fr 1fr; }
.tn-io-one { grid-template-columns: 1fr; }
.tn-box { position: relative; display: flex; flex-direction: column; min-width: 0; }
.tn-box + .tn-box { border-left: 1px solid var(--line); }
.tn-box-head { display: flex; align-items: center; gap: 6px; padding: 8px 10px 8px 14px; border-bottom: 1px solid var(--line); min-height: 48px; flex-wrap: wrap; }
.tn-box-head b { font-size: 14px; }
.tn-count { white-space: nowrap; }
.tn-ta { width: 100%; min-height: 340px; height: 42vh; max-height: 70vh; resize: vertical; border: 0; padding: 14px; background: var(--bg); color: var(--text);
  font: 14px/1.6 var(--font-mono); tab-size: 4; outline: none; }
.tn-io-one .tn-ta { height: 30vh; min-height: 220px; }
[data-kind="generate"] .tn-ta { height: 46vh; }
.tn-ta[readonly] { background: color-mix(in srgb, var(--primary) 3%, var(--bg)); }
.tn-ta:focus { box-shadow: inset 0 0 0 2px var(--primary-100); }
.tn-drop { display: none; position: absolute; inset: 48px 0 0; align-items: center; justify-content: center; gap: 8px; flex-direction: column; color: var(--primary);
  background: color-mix(in srgb, var(--primary) 12%, var(--bg)); border: 2px dashed var(--primary); }
.tn-box.over .tn-drop { display: flex; }
.tn-note { padding: 8px 14px; min-height: 36px; border-top: 1px solid var(--line); color: var(--text-2); background: var(--surface); }
.tn-note:empty { display: none; }
.tn-note.err { color: var(--danger); background: var(--danger-bg); font-weight: 500; }
.tn-tool > .btn[data-act="run"] { margin: 10px 14px; }
.tn-panel { padding: 16px; border-top: 1px solid var(--line); }
.tn-panel:empty { display: none; }
@media (max-width: 760px) { .tn-io { grid-template-columns: 1fr; } .tn-box + .tn-box { border-left: 0; border-top: 1px solid var(--line); } .tn-ta { height: 30vh; min-height: 200px; } }

/* stats, limits, lists, tables */
.tn-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tn-stat { display: flex; flex-direction: column; padding: 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.tn-stat b { font-size: 26px; letter-spacing: -.02em; color: var(--primary); }
.tn-stat span { font-size: 13px; color: var(--text-2); font-weight: 500; }
.tn-limits { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px 18px; margin-top: 16px; }
.tn-limit { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 13px; }
.tn-limit .meter { grid-column: 1 / -1; }
.tn-limit.over small, .tn-limit.over span { color: var(--danger); }
.tn-limit.over .meter i { background: var(--danger); }
.tn-list { display: flex; flex-direction: column; gap: 8px; }
.tn-item { display: grid; grid-template-columns: 130px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.tn-item-l { font-size: 13px; font-weight: 600; color: var(--muted); }
.tn-item-t { font: 15px/1.5 var(--font-mono); word-break: break-all; white-space: pre-wrap; }
[data-tool="fancy-text"] .tn-item-t { font-family: var(--font-ui); font-size: 18px; }
@media (max-width: 600px) { .tn-item { grid-template-columns: 1fr auto; } .tn-item-l { grid-column: 1 / -1; } }
.tn-table-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }

/* about, related, ad pair */
.tn-ad-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 300px)); justify-content: center; gap: 24px; margin: 22px 0 6px; }
.tn-ad-pair .ad-slot { margin: 0; }
.tn-ad-pair:not(:has(.ad-slot:not([hidden]))) { display: none; }
@media (max-width: 700px) { .tn-ad-pair { grid-template-columns: 1fr; } }
.tn-about { margin-top: 22px; }
.tn-about h2 { margin: 0 0 8px; font-size: 20px; }
.tn-about h3 { margin: 16px 0 6px; font-size: 16px; }
.tn-about p { color: var(--text-2); margin: 0 0 8px; }
.tn-steps { margin: 0 0 10px; padding-left: 20px; color: var(--text-2); }
.tn-steps li { margin-bottom: 4px; }
.tn-related { margin-top: 26px; }
.tn-related h2 { font-size: 20px; margin: 0 0 12px; }
.tn-cats-more { margin-top: 30px; }
.tn-cats-more .tn-chips { justify-content: flex-start; }

/* compare */
.tn-diff-sum { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.dx-pill { display: inline-flex; align-items: center; gap: 5px; font: 600 12.5px/1 var(--font-ui); padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.dx-p-add, .dx-p-same { background: var(--success-bg); color: var(--success); } .dx-p-del { background: var(--danger-bg); color: var(--danger); } .dx-p-chg { background: var(--warning-bg); color: var(--warning); }
.tn-diff-wrap { max-height: 60vh; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
.dx-tbl { width: 100%; border-collapse: collapse; table-layout: fixed; font: 12.5px/1.55 var(--font-mono); }
.dx-tbl td { padding: 0 8px; vertical-align: top; white-space: pre-wrap; word-break: break-word; }
.dx-tbl td.dx-n { text-align: right; color: var(--muted); background: var(--surface); user-select: none; font-size: 11.5px; }
.dx-c.dx-del { background: color-mix(in srgb, var(--danger) 9%, transparent); }
.dx-c.dx-ins { background: color-mix(in srgb, var(--success) 11%, transparent); }
.dx-c.dx-none { background: repeating-linear-gradient(135deg, transparent 0 5px, var(--surface-2) 5px 10px); }
span.dx-d { background: color-mix(in srgb, var(--danger) 30%, transparent); border-radius: 3px; text-decoration: line-through; }
span.dx-i { background: color-mix(in srgb, var(--success) 34%, transparent); border-radius: 3px; }

/* footer */
.tn-foot { grid-template-columns: 2fr repeat(6, 1fr); }
@media (max-width: 1000px) { .tn-foot { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- wide ad formats */
.ad-wide { max-width: 970px; margin: 22px auto; }
.ad-bill { display: block; max-width: 970px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .15s var(--ease), box-shadow .15s; }
.ad-bill img { display: block; width: 100%; height: auto; }
.ad-bill:hover, .ad-half:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }
.ad-bill-text { display: flex; align-items: center; gap: 26px; min-height: 250px; padding: 28px 40px; border: 1px solid var(--line);
  background: linear-gradient(115deg, color-mix(in srgb, var(--ad-accent) 26%, var(--elev)), var(--elev) 70%); }
.ad-bill-text .ad-txt b { font-size: clamp(22px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.15; }
.ad-bill-text .ad-txt span { font-size: 16px; white-space: normal; margin: 8px 0 14px; }
.ad-bill-text .ad-cta { align-self: flex-start; font-size: 15px; padding: 10px 20px; }
@media (max-width: 760px) { .ad-bill-text { min-height: 0; padding: 18px; gap: 14px; flex-direction: column; align-items: flex-start; } }
.ad-half { display: block; width: 300px; max-width: 100%; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-card); transition: transform .15s var(--ease), box-shadow .15s; }
.ad-half img { display: block; width: 100%; height: auto; }
.ad-half-text { min-height: 600px; padding: 24px; display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--ad-accent) 24%, var(--elev)), var(--elev)); }
.ad-half-text b { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; } .ad-half-text > span:not(.ad-icon):not(.ad-cta) { color: var(--muted); font-size: 15px; flex: 1; }
.ad-half-text .ad-cta { text-align: center; }
.ad-slot[data-format="HALFPAGE"] .ad-meta, .ad-slot[data-format="RECTANGLE"] .ad-meta { max-width: 300px; }
@media (max-width: 1080px) { .tn-side .ad-half-text { min-height: 320px; } .tn-side .ad-half { width: 300px; } }
/* sticky bottom bar: phones and desktops */
.ad-slot[data-ad-slot="STICKY_FOOTER"] { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; z-index: 60; }
@media (min-width: 768px) {
  .ad-slot[data-ad-slot="STICKY_FOOTER"] .ad-anchor-bar { max-width: 760px; margin: 0 auto 10px; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
}
body:has(.ad-slot[data-ad-slot="STICKY_FOOTER"]:not([hidden])) { padding-bottom: 82px; }

/* legal + advertise */
.legal { max-width: 820px; }
.legal h2 { margin-top: 26px; font-size: 20px; }
.legal p, .legal li { color: var(--text-2); }
.adv-rate { width: 100%; }
.adv-form .grid-2 { gap: 12px 16px; }
.adv-form textarea { min-height: 120px; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* admin + login */
.tn-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; background: radial-gradient(900px 400px at 50% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent), var(--bg); }
.tn-login-box { width: min(420px, 100%); }
.tn-admin-nav a { display: inline-flex; gap: 6px; align-items: center; }
.tn-admin-nav a.on { color: var(--primary); background: var(--primary-50); }
.tn-inq { margin-bottom: 12px; }
.tn-inq.new { border-color: color-mix(in srgb, var(--warning) 60%, var(--line)); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
/* advertise previews */
.adv-formats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.adv-fmt-billboard, .adv-fmt-leaderboard { grid-column: 1 / -1; }
.adv-fmt-halfpage { grid-row: span 2; }
.adv-fmt .ad-slot { overflow: hidden; }
@media (max-width: 800px) { .adv-formats-grid { grid-template-columns: 1fr; } .adv-fmt-halfpage { grid-row: auto; } }
/* box toolbars stay on one row: drop button labels when the box is narrow (Copy keeps its label) */
.tn-box { container-type: inline-size; }
.tn-box-head { flex-wrap: nowrap; }
.tn-count { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
@container (max-width: 560px) {
  .tn-box-head .btn:not([data-act="copy"]) > span { display: none; }
  .tn-box-head .btn:not([data-act="copy"]) { padding-left: 8px; padding-right: 8px; }
}
@container (max-width: 380px) { .tn-count { display: none; } }
.ad-rail .ad-meta { font-size: 10px; flex-direction: column; align-items: flex-start; gap: 0; }
/* phones: grid items must be allowed to shrink below their content width */
.tn-main, .tn-side, .tn-tool, .tn-box { min-width: 0; }
@media (max-width: 1080px) { .tn-layout { grid-template-columns: minmax(0, 1fr); } }
.tn-sel { flex-wrap: wrap; max-width: 100%; }
.tn-sel select { max-width: 100%; }
@media (max-width: 800px) { .adv-formats-grid { grid-template-columns: minmax(0, 1fr); } }
.adv-fmt { min-width: 0; }
.ad-bill img, .ad-half img, .ad-leader img, .ad-rect img { max-width: 100%; height: auto; }

/* HttpNex tool UI: endpoint "Try it" cards, request tester, response viewer, status codes, form tester, home examples. */
.hn-hero { padding-bottom: 30px; }
.mono, code, .hn-code { font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace; }

/* method badges */
.hn-m { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 3px 8px; border-radius: 7px; font: 700 11.5px/1.3 'JetBrains Mono', monospace;
  letter-spacing: .02em; color: #fff; background: #64748B; flex: none; }
.m-get { background: #0F766E; } .m-post { background: #C2410C; } .m-put { background: #1D4ED8; } .m-patch { background: #7C3AED; }
.m-delete { background: #B91C1C; } .m-head, .m-options { background: #475569; } .m-any { background: linear-gradient(135deg, #0D9488, #4F46E5); }

/* status pills */
.hn-status { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font: 700 12.5px/1.35 'JetBrains Mono', monospace; white-space: nowrap; }
.hn-status.s2 { background: var(--success-bg); color: #166534; } .hn-status.s3 { background: #DBEAFE; color: #1E40AF; }
.hn-status.s4 { background: var(--warning-bg); color: #92400E; } .hn-status.s5 { background: var(--danger-bg); color: #991B1B; } .hn-status.s0 { background: var(--surface-2); color: var(--muted); }
:root[data-theme="dark"] .hn-status.s2 { background: rgba(74,222,128,.15); color: #86EFAC; } :root[data-theme="dark"] .hn-status.s3 { background: rgba(96,165,250,.16); color: #93C5FD; }
:root[data-theme="dark"] .hn-status.s4 { background: rgba(251,191,36,.15); color: #FCD34D; } :root[data-theme="dark"] .hn-status.s5 { background: rgba(248,113,113,.16); color: #FCA5A5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .hn-status.s2 { background: rgba(74,222,128,.15); color: #86EFAC; } :root:not([data-theme="light"]) .hn-status.s3 { background: rgba(96,165,250,.16); color: #93C5FD; }
  :root:not([data-theme="light"]) .hn-status.s4 { background: rgba(251,191,36,.15); color: #FCD34D; } :root:not([data-theme="light"]) .hn-status.s5 { background: rgba(248,113,113,.16); color: #FCA5A5; }
}

/* endpoint cards */
.hn-eps-tool { background: transparent; border: 0; box-shadow: none; overflow: visible; display: flex; flex-direction: column; gap: 16px; }
.hn-eps-intro { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px; border: 1px dashed var(--line-2); border-radius: var(--r-md); background: var(--surface); }
.hn-eps-intro code { font-size: 13.5px; }
.hn-ep { padding: 0; overflow: hidden; scroll-margin-top: calc(var(--header-h) + 16px); transition: box-shadow .3s; }
.hn-ep.flash { box-shadow: 0 0 0 3px var(--primary-100), var(--shadow-card); }
.hn-ep-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.hn-path { font-size: 15px; font-weight: 600; color: var(--text); word-break: break-all; }
.hn-path i { font-style: normal; color: var(--primary); }
.hn-ep-sum { font-size: 14px; flex: 1 1 260px; }
.hn-m-select { width: auto; min-height: 34px; padding: 4px 30px 4px 10px; font: 700 13px 'JetBrains Mono', monospace; }
.hn-ep-form { padding: 14px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.hn-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.hn-f { display: flex; flex-direction: column; gap: 5px; font-size: 13.5px; min-width: 0; }
.hn-f small { font-size: 12px; }
.hn-f .input { min-height: 38px; padding: 7px 10px; font-size: 14px; }
.hn-body-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.hn-ct { width: auto; min-height: 34px; padding: 4px 30px 4px 10px; font-size: 13px; }
.hn-ct-input { width: 220px; min-height: 32px; padding: 4px 10px; font-size: 13px; }
.hn-ep-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 14px 16px; }
.hn-url { flex: 1 1 200px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-ep-res { border-top: 1px solid var(--line); }

/* response viewer */
.hn-res { min-height: 70px; }
.hn-res-empty, .hn-res-busy { display: flex; align-items: center; gap: 8px; padding: 18px 16px; }
.hn-res-busy .btn { margin-left: auto; }
.hn-res-err { margin: 12px 16px; border-radius: var(--r-md); }
.spin { animation: hnspin 1s linear infinite; } @keyframes hnspin { to { transform: rotate(360deg); } }
.hn-status-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px 8px; }
.hn-meta { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.hn-redir { color: var(--accent); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-res-tabs { margin: 0 16px 10px; }
.hn-res-body { padding: 0 16px 16px; }
.hn-code { margin: 0; padding: 14px; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r-md); font-size: 13px; line-height: 1.55;
  overflow: auto; max-height: 460px; white-space: pre-wrap; word-break: break-word; tab-size: 2; color: var(--text); }
.hn-hex { white-space: pre; word-break: normal; }
.j-k { color: #0F766E; } .j-s { color: #B45309; } .j-n { color: #4338CA; } .j-b { color: #BE123C; font-weight: 600; }
:root[data-theme="dark"] .j-k { color: #5EEAD4; } :root[data-theme="dark"] .j-s { color: #FCD34D; } :root[data-theme="dark"] .j-n { color: #A5B4FC; } :root[data-theme="dark"] .j-b { color: #FDA4AF; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .j-k { color: #5EEAD4; } :root:not([data-theme="light"]) .j-s { color: #FCD34D; }
  :root:not([data-theme="light"]) .j-n { color: #A5B4FC; } :root:not([data-theme="light"]) .j-b { color: #FDA4AF; } }
.hn-headers { width: 100%; border-collapse: collapse; font-size: 13px; }
.hn-headers th, .hn-headers td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.hn-headers th { font-family: 'JetBrains Mono', monospace; font-weight: 600; white-space: nowrap; color: var(--text-2); width: 1%; }
.hn-headers td { font-family: 'JetBrains Mono', monospace; word-break: break-all; }
.hn-img { padding: 14px; background: repeating-conic-gradient(var(--surface-2) 0 25%, var(--elev) 0 50%) 0 0 / 20px 20px; border-radius: var(--r-md); border: 1px solid var(--line); text-align: center; }
.hn-img img { max-width: 100%; height: auto; border-radius: 6px; }
.hn-empty-body { padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--r-md); }
.hn-stream { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; max-height: 420px; overflow: auto; padding: 10px; background: var(--code-bg); border: 1px solid var(--line); border-radius: var(--r-md); }
.hn-stream > div { white-space: pre-wrap; word-break: break-all; }
.hn-stream code { font-size: 12.5px; }
.hn-snip { display: flex; flex-direction: column; gap: 12px; }
.hn-snip-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; font-size: 13.5px; }

/* request tester */
.hn-tester { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.hn-bar { display: flex; gap: 8px; align-items: stretch; }
.hn-bar .hn-m-select { min-height: 44px; font-size: 14px; }
.hn-urlbox { flex: 1; display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--elev); min-width: 0; }
.hn-urlbox:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-100); }
.hn-origin { padding: 0 0 0 12px; color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.hn-urlbox .input { border: 0; box-shadow: none !important; background: transparent; min-height: 42px; padding-left: 2px; font-size: 14.5px; }
.hn-send { min-height: 44px; padding: 0 22px; }
.hn-bar2 { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hn-bar2 .select { max-width: 520px; min-height: 36px; font-size: 13.5px; }
.hn-tabs { align-self: flex-start; flex-wrap: wrap; }
.hn-pane { display: flex; flex-direction: column; gap: 10px; }
.hn-pane > p { margin: 0; }
.hn-kv-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto auto; gap: 8px; margin-bottom: 8px; align-items: center; }
.hn-kv-row .input, .hn-kv-row .select { min-height: 36px; padding: 6px 10px; font-size: 13.5px; }
.hn-kv-row .input:not([type="file"]) { font-family: 'JetBrains Mono', monospace; }
.hn-kv-type { width: 88px; }
.hn-res-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--elev); }
.hn-res-h { display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.hn-hist { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.hn-hist-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--elev); cursor: pointer; text-align: left; color: var(--text); font: inherit; }
.hn-hist-item:hover { border-color: var(--primary); }
.hn-hist-item code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }

/* status code reference */
.hn-codes-tool { padding: 16px; }
.hn-codes-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.hn-codes-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.hn-codes-list { display: flex; flex-direction: column; gap: 6px; }
.hn-codes-g { margin: 12px 0 2px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.hn-codes-g:first-child { margin-top: 0; }
.hn-code-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-md); }
.hn-code-row.on { border-color: var(--primary); background: var(--primary-50); }
.hn-code-row .hn-status { min-width: 52px; justify-content: center; }
.hn-codes-res { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
@media (max-width: 1000px) { .hn-codes-grid { grid-template-columns: 1fr; } .hn-codes-res { position: static; } }

/* form tester */
.hn-form-tool { padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.hn-order { display: flex; flex-direction: column; gap: 14px; }
.hn-fs { border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 14px 12px; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.hn-fs legend { font-weight: 600; font-size: 13.5px; padding: 0 6px; }
.hn-fs label { display: inline-flex; gap: 6px; align-items: center; }
.hn-form-bar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* home: quick examples + all endpoints */
.hn-quick { display: grid; grid-template-columns: 300px minmax(0, 1fr); }
.hn-quick-list { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); padding: 8px; gap: 4px; }
.hn-quick-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid transparent; border-radius: var(--r-md); background: transparent; cursor: pointer; text-align: left; color: var(--text); font: inherit; }
.hn-quick-item:hover { background: var(--elev); border-color: var(--line); }
.hn-quick-item.on { background: var(--elev); border-color: var(--primary); box-shadow: var(--shadow-card); }
.hn-quick-item b { display: block; font-size: 13.5px; }
.hn-quick-item code { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hn-quick-item .grow { min-width: 0; }
.hn-quick-out { min-width: 0; }
.hn-term { display: flex; align-items: center; gap: 8px; margin: 14px 16px 0; padding: 10px 12px; border-radius: var(--r-md); background: #0B1220; color: #E2E8F0; font-size: 13px; }
.hn-term code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: #A7F3D0; }
.hn-term .btn { color: #CBD5E1; }
.hn-quick .hn-res { min-height: 320px; }
@media (max-width: 860px) { .hn-quick { grid-template-columns: 1fr; } .hn-quick-list { border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .hn-quick-list { grid-template-columns: 1fr; } }
.hn-all-eps { margin-top: 34px; }
.hn-ep-cols { columns: 3 300px; column-gap: 16px; }
.hn-ep-group { break-inside: avoid; margin-bottom: 16px; display: flex; flex-direction: column; gap: 4px; }
.hn-ep-group-h { font-weight: 700; color: var(--text); margin-bottom: 4px; }
.hn-ep-row { display: flex; align-items: center; gap: 10px; padding: 4px 6px; border-radius: 8px; color: var(--text-2); }
.hn-ep-row:hover { background: var(--surface-2); }
.hn-ep-row .hn-m { min-width: 64px; font-size: 10.5px; }
.hn-ep-row code { font-size: 13px; word-break: break-all; }

@media (max-width: 640px) {
  .hn-bar { flex-wrap: wrap; } .hn-urlbox { flex-basis: 100%; order: 3; } .hn-origin { display: none; }
  .hn-kv-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; } .hn-kv-type { grid-column: 1 / 3; width: 100%; }
  .hn-url { text-align: left; flex-basis: 100%; }
}

/* from httpnex.css */
.gradient-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hx-app .tn-hero { padding: 18px 0 6px; } .hx-app .tn-hero .wrap, .hx-app .wrap { max-width: none; padding: 0; }
