/* =============================================================================
   DNS Benchmark Pro — network tool pages
   Shares the palette of dbp-app.css. Loaded only by the tool pages.
   ========================================================================== */

.tl-hero { padding: 1.5rem 0 .5rem; max-width: 52rem; margin: 0 auto; }
.tl-hero .dbp-doc-lead { margin-bottom: 0; }

.tl-panel {
  max-width: 64rem; margin: 1.5rem auto 0;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.09); border-radius: 1.1rem;
  padding: 1.25rem; box-shadow: 0 30px 80px -40px rgba(0,229,255,.25);
}
@media (min-width: 640px) { .tl-panel { padding: 1.5rem 1.75rem; } }

/* ---- form -------------------------------------------------------------- */
.tl-form { display: grid; gap: .75rem; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .tl-form { grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: end; }
  .tl-form.tl-form-2 { grid-template-columns: minmax(0, 1fr) auto; }
  .tl-form.tl-form-3 { grid-template-columns: minmax(0, 1fr) auto auto; }
}
.tl-field { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.tl-label {
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em;
  color: rgba(255,255,255,.45);
}
.tl-input, .tl-select {
  width: 100%; box-sizing: border-box; background: rgba(0,0,0,.35); color: #fff;
  border: 1px solid rgba(255,255,255,.14); border-radius: .7rem;
  padding: .75rem .9rem; font: inherit; font-size: .95rem;
}
.tl-input { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9rem; }
.tl-input::placeholder { color: rgba(255,255,255,.3); }
.tl-input:focus, .tl-select:focus { outline: none; border-color: #00E5FF; box-shadow: 0 0 0 3px rgba(0,229,255,.18); }
.tl-select { padding-right: 2rem; cursor: pointer; }
.tl-select option { background: #0B0F19; }
.tl-btn {
  border: 0; border-radius: .75rem; padding: .8rem 1.5rem; font: inherit; font-weight: 700; font-size: .95rem;
  background: linear-gradient(180deg, #00E5FF, #00B8D4); color: #04121A; cursor: pointer; white-space: nowrap;
  box-shadow: 0 10px 30px -12px rgba(0,229,255,.7);
}
.tl-btn:hover { filter: brightness(1.06); }
.tl-btn:focus-visible, .tl-copy:focus-visible, .tl-xlink:focus-visible { outline: 2px solid #00E5FF; outline-offset: 2px; }
.tl-hint { margin: .7rem 0 0; font-size: .8125rem; color: rgba(255,255,255,.42); line-height: 1.6; }
.tl-hint button {
  background: none; border: 0; padding: 0; font: inherit; color: rgba(0,229,255,.85);
  text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
}

.tl-status { min-height: 1.4rem; margin-top: .9rem; font-size: .85rem; color: rgba(255,255,255,.6); display: flex; align-items: center; gap: .55rem; }
.tl-spin {
  width: .9rem; height: .9rem; border-radius: 50%; border: 2px solid rgba(0,229,255,.25);
  border-top-color: #00E5FF; animation: tl-spin .7s linear infinite; flex-shrink: 0;
}
@keyframes tl-spin { to { transform: rotate(360deg); } }

/* ---- results ----------------------------------------------------------- */
.tl-out:empty { display: none; }
.tl-out { margin-top: .5rem; }
.tl-summary {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.1rem; margin-top: .4rem;
}
.tl-summary-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1rem; }
.tl-qname { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; color: #fff; word-break: break-all; }
.tl-sec { margin-top: 1.6rem; }
.tl-sec-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .3rem .9rem; margin-bottom: .6rem; }
.tl-sec-h h3 { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; letter-spacing: -.01em; }
.tl-sec-meta { font-size: .8rem; color: rgba(255,255,255,.45); }
.tl-empty { color: rgba(255,255,255,.5); font-size: .875rem; margin: 0; }
.tl-note { font-size: .8125rem; color: rgba(255,255,255,.55); line-height: 1.6; margin: .6rem 0 0; }
.tl-dim { color: rgba(255,255,255,.42); }
.tl-error {
  margin-top: 1rem; border: 1px solid rgba(248,113,113,.35); background: rgba(248,113,113,.07);
  color: #FCA5A5; border-radius: .7rem; padding: .75rem 1rem; font-size: .875rem; line-height: 1.55;
}

.tl-tablewrap { overflow-x: auto; border: 1px solid rgba(255,255,255,.07); border-radius: .75rem; }
.tl-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tl-table th, .tl-table td { padding: .6rem .85rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.06); }
.tl-table tr:last-child td { border-bottom: 0; }
.tl-table thead th { font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: rgba(255,255,255,.42); font-weight: 600; white-space: nowrap; background: rgba(255,255,255,.02); }
.tl-table code, .tl-kv code, .tl-recline code, .tl-mono, .tl-ipaddr, .tl-tree code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .8rem;
}
.tl-name { white-space: nowrap; color: rgba(255,255,255,.75); }
.tl-name b { display: block; font-size: .85rem; color: #fff; }
.tl-name small { display: block; color: rgba(255,255,255,.42); font-size: .72rem; white-space: normal; }
.tl-type { color: #00E5FF; font-weight: 600; font-size: .78rem; white-space: nowrap; }
.tl-ttl { white-space: nowrap; color: rgba(255,255,255,.55); font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; }
.tl-val { word-break: break-all; color: rgba(255,255,255,.9); min-width: 14rem; }
.tl-line { display: block; }
.tl-line + .tl-line { margin-top: .2rem; }
.tl-c { text-align: center !important; white-space: nowrap; }
.tl-prop tr.tl-differ td { background: rgba(252,211,77,.035); }
.tl-prop tr.tl-unread td { opacity: .6; }
.tl-pending { color: #FCD34D !important; }

.tl-tag {
  display: inline-block; margin-left: .45rem; padding: .05rem .4rem; border-radius: .3rem; vertical-align: 1px;
  font-size: .62rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #00E5FF; border: 1px solid rgba(0,229,255,.35); font-family: Inter, system-ui, sans-serif;
}
.tl-tag-warn { color: #FCD34D; border-color: rgba(252,211,77,.4); }

.tl-badge {
  display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .55rem; border-radius: 999px;
  font-size: .72rem; font-weight: 700; white-space: nowrap; letter-spacing: .01em;
}
.tl-badge::before { content: ''; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; }
.tl-pass { color: #34D399; background: rgba(52,211,153,.12); }
.tl-warn { color: #FCD34D; background: rgba(252,211,77,.12); }
.tl-fail { color: #F87171; background: rgba(248,113,113,.13); }
.tl-info { color: #7DD3FC; background: rgba(125,211,252,.11); }

.tl-verdict {
  margin-top: 1rem; border-radius: .8rem; padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025);
}
.tl-verdict p { margin: .5rem 0 0; font-size: .875rem; line-height: 1.6; color: rgba(255,255,255,.72); }
.tl-v-pass { border-color: rgba(52,211,153,.3); }
.tl-v-warn { border-color: rgba(252,211,77,.3); }
.tl-v-fail { border-color: rgba(248,113,113,.35); }
.tl-v-info { border-color: rgba(125,211,252,.25); }

.tl-kv { display: grid; grid-template-columns: 1fr; gap: .15rem 1.25rem; margin: .4rem 0 0; font-size: .875rem; }
@media (min-width: 640px) { .tl-kv { grid-template-columns: minmax(9rem, 13rem) 1fr; } }
.tl-kv dt { color: rgba(255,255,255,.45); padding-top: .55rem; font-size: .8rem; }
.tl-kv dd { margin: 0; color: rgba(255,255,255,.88); padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.05); word-break: break-word; line-height: 1.55; }
@media (min-width: 640px) { .tl-kv dt { border-bottom: 1px solid rgba(255,255,255,.05); padding-bottom: .5rem; } }
.tl-kv a, .tl-tree a { color: #00E5FF; text-decoration: underline; text-underline-offset: 2px; }

.tl-find { list-style: none; margin: .4rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.tl-find li { display: flex; gap: .65rem; align-items: flex-start; font-size: .875rem; line-height: 1.55; color: rgba(255,255,255,.8); }
.tl-find .tl-badge { margin-top: .1rem; min-width: 5.4rem; justify-content: flex-start; }
.tl-find-inline { color: #FCD34D; font-size: .8rem; margin-top: .2rem; }

.tl-recline {
  display: flex; gap: .6rem; align-items: flex-start; margin: .2rem 0 .7rem;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); border-radius: .6rem; padding: .6rem .75rem;
}
.tl-recline code { flex: 1; word-break: break-all; color: rgba(255,255,255,.9); line-height: 1.6; }

.tl-scores { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.tl-score {
  display: flex; flex-direction: column; gap: .35rem; padding: .6rem .75rem; border-radius: .7rem;
  border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.025); min-width: 7.5rem;
}
.tl-score-l { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.5); font-weight: 600; }

.tl-tree, .tl-tree ul { list-style: none; margin: 0; padding-left: 1.1rem; border-left: 1px solid rgba(255,255,255,.1); }
.tl-tree { margin-top: .6rem; padding-left: .8rem; }
.tl-tree li { margin: .55rem 0; font-size: .85rem; }
.tl-dom { color: #00E5FF; }
.tl-spf code { color: rgba(255,255,255,.62); font-size: .75rem; word-break: break-all; }

.tl-status-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.tl-status-list li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .85rem; color: rgba(255,255,255,.7); line-height: 1.5; }
.tl-status-list code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .78rem; color: #fff; background: rgba(255,255,255,.06); padding: .1rem .4rem; border-radius: .3rem; }

.tl-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.06); }
.tl-copy, .tl-xlink {
  display: inline-flex; align-items: center; gap: .35rem; border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.04); color: rgba(255,255,255,.85); border-radius: .55rem;
  padding: .4rem .75rem; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.tl-copy:hover, .tl-xlink:hover { border-color: rgba(0,229,255,.5); color: #fff; }
.tl-copy[disabled] { opacity: .6; cursor: progress; }
.tl-related { margin-top: 1rem; }

.tl-details { margin-top: 1rem; }
.tl-details summary { cursor: pointer; font-size: .82rem; color: rgba(255,255,255,.6); }
.tl-details summary:hover { color: #00E5FF; }
.tl-raw {
  margin-top: .6rem; max-height: 28rem; overflow: auto; background: rgba(0,0,0,.45);
  border: 1px solid rgba(255,255,255,.08); border-radius: .6rem; padding: .8rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .72rem; color: rgba(255,255,255,.75);
  white-space: pre-wrap; word-break: break-all;
}

/* ---- what's my IP ------------------------------------------------------ */
.tl-ipgrid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .tl-ipgrid { grid-template-columns: 1fr 1fr; } }
.tl-ipcard { border: 1px solid rgba(0,229,255,.22); background: rgba(0,229,255,.04); border-radius: .9rem; padding: 1.1rem 1.2rem; min-width: 0; }
.tl-ipcard-off { border-color: rgba(255,255,255,.08); background: rgba(255,255,255,.02); }
.tl-ipfam { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); font-weight: 700; }
.tl-iprow { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin: .35rem 0 .3rem; }
.tl-ipaddr { font-size: clamp(1.15rem, 3.2vw, 1.6rem) !important; font-weight: 700; color: #fff; word-break: break-all; }
.tl-ipcard-off .tl-ipaddr { display: block; margin: .35rem 0; font-size: 1.1rem !important; }
.tl-owner { margin-top: .7rem; }

/* ---- disclosure + related tools --------------------------------------- */
.tl-disclose { margin: 1rem 0 0; font-size: .78rem; color: rgba(255,255,255,.4); line-height: 1.6; }
.tl-disclose a { color: rgba(0,229,255,.8); }

.tl-related-tools { display: grid; gap: .75rem; grid-template-columns: 1fr; margin: 1rem 0 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .tl-related-tools { grid-template-columns: repeat(2, 1fr); } }
.tl-related-tools a {
  display: block; padding: .9rem 1rem; border-radius: .8rem; border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.025); text-decoration: none !important; transition: border-color .15s;
}
.tl-related-tools a:hover { border-color: rgba(0,229,255,.45); }
.tl-related-tools b { display: block; color: #fff; font-size: .92rem; }
.tl-related-tools span { display: block; color: rgba(255,255,255,.55); font-size: .8rem; line-height: 1.5; margin-top: .2rem; }

/* ---- hub --------------------------------------------------------------- */
.tl-hub { display: grid; gap: 1rem; grid-template-columns: 1fr; margin: 2rem 0 0; padding: 0; list-style: none; }
@media (min-width: 720px) { .tl-hub { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .tl-hub { grid-template-columns: repeat(3, 1fr); } }
.tl-hub a {
  display: flex; flex-direction: column; gap: .5rem; height: 100%; box-sizing: border-box; padding: 1.3rem 1.35rem;
  border-radius: 1rem; border: 1px solid rgba(255,255,255,.09);
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  text-decoration: none !important; transition: border-color .15s, transform .15s;
}
.tl-hub a:hover { border-color: rgba(0,229,255,.5); transform: translateY(-2px); }
.tl-hub b { color: #fff; font-size: 1.05rem; letter-spacing: -.01em; }
.tl-hub span { color: rgba(255,255,255,.6); font-size: .875rem; line-height: 1.6; }
.tl-hub em { margin-top: auto; padding-top: .4rem; font-style: normal; color: #00E5FF; font-size: .82rem; font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  .tl-spin { animation-duration: 2s; }
  .tl-hub a { transition: none; }
  .tl-hub a:hover { transform: none; }
}

/* ---- table layout: aligned columns on desktop, stacked rows on phones --- */
.tl-hint a { color: rgba(0,229,255,.85); text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 640px) {
  .tl-rec { table-layout: fixed; }
  .tl-rec th:nth-child(1) { width: 30%; }
  .tl-rec th:nth-child(2) { width: 5.5rem; }
  .tl-rec th:nth-child(3) { width: 4.5rem; }
  .tl-rec .tl-name { white-space: normal; word-break: break-all; }
}
@media (max-width: 639px) {
  .tl-stack thead { display: none; }
  .tl-stack, .tl-stack tbody, .tl-stack tr { display: block; width: 100%; }
  .tl-stack tr { padding: .65rem .8rem; border-bottom: 1px solid rgba(255,255,255,.06); }
  .tl-stack tr:last-child { border-bottom: 0; }
  .tl-stack td { display: inline-block; padding: 0 .6rem 0 0 !important; border: 0 !important; vertical-align: baseline; }
  .tl-stack td.tl-val { display: block; min-width: 0; margin-top: .3rem; padding-right: 0 !important; }
  .tl-stack td.tl-name { white-space: normal; word-break: break-all; }
  .tl-stack td.tl-c { display: block; text-align: left !important; margin-top: .35rem; }
  .tl-tablewrap { overflow-x: visible; }
}
.tl-ipcard-off .tl-ipaddr { font-family: Inter, system-ui, sans-serif !important; font-weight: 600; }
.tl-unread-list { margin: .6rem 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .35rem .5rem; }
.tl-unread-list li { font-size: .78rem; color: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.1); border-radius: .4rem; padding: .15rem .5rem; }
