/* Tattletell on wannabegeek.net. Scoped under #tt so it never touches the site chrome; colours and fonts come from site.css / fonts.css. */
#tt {
  --bg: var(--clr-bg); --surface: var(--clr-surface); --surface-2: var(--clr-card); --fg: var(--clr-text); --muted: #9a9aab; --line: var(--clr-border);
  --accent: var(--clr-green); --accent-fg: #111; --mark: var(--clr-amber); --mark-fg: #111;
  --low: var(--clr-green); --med: var(--clr-amber); --high: #ff7b73;
  --font-display: var(--font-ui); --font-body: var(--font-ui);
  --c-first: #39d98a; --c-ad: #ff7b73; --c-an: #f0c060; --c-px: #d98acb; --c-rp: #b794f0; --c-so: #7dc4f0; --c-cd: #9bacbd; --c-unk: #a8a8a8;
  --c-ot: #9bacbd; --c-em: #9bacbd; --c-id: #7dc4f0; --c-fr: #9bacbd; --c-ch: #9bacbd; --c-pay: #9bacbd; --c-tm: #f0c060; --c-cm: #9bacbd; --c-mw: #ff7b73; --c-nt: #9bacbd;
  font-size: 15px; line-height: 1.55; color: var(--fg); color-scheme: dark;
}
#tt h1, #tt h2, #tt h3 { font-weight: 800; }
#tt .gmap .nl, #tt .gmap .ns, #tt .gmap .gh { font-family: var(--font-ui); }
#tt .val, #tt code { font-family: var(--font-mono); }
#tt .tt-btn { color: var(--fg); font-family: var(--font-ui); }
#tt .tt-btn.primary { color: #111; font-weight: 800; }
#tt .tt-btn.primary:hover { background: #4ff5a6; box-shadow: 0 4px 20px rgba(57,217,138,.35); }
#tt .banner { background: rgba(240,165,0,.10); border: 1px solid rgba(240,165,0,.35); }
#tt a { color: var(--clr-blue); } #tt a:hover { color: var(--clr-green); }
#tt details.how summary { color: var(--accent); }
#tt .mapwrap { background: var(--surface); }
#tt h1, #tt h2, #tt h3 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
#tt p { margin: 0; }
#tt button, #tt input, #tt select, #tt textarea { font: inherit; color: inherit; }
#tt button { cursor: pointer; }
#tt :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#tt code, #tt .mono { font-family: var(--font-mono); font-size: 0.88em; }
#tt .tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
#tt .tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 14px 9px; font-weight: 600; color: var(--muted); white-space: nowrap; }
#tt .tab[aria-selected="true"] { color: var(--fg); border-bottom-color: var(--accent); }
#tt .tab:hover { color: var(--fg); }
#tt .lede { max-width: 68ch; color: var(--muted); margin-bottom: 16px; }
#tt .lede strong { color: var(--fg); font-weight: 600; }
#tt .tt-btn { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 12px; font-weight: 600; }
#tt .tt-btn:hover { border-color: var(--accent); }
#tt .tt-btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
#tt .tt-btn.small { padding: 4px 9px; font-size: 13px; }
#tt .tt-btn.link { background: none; border: 0; color: var(--accent); padding: 0; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
#tt input[type="text"], #tt select, #tt textarea {
  background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 7px 10px; min-width: 0;
}
#tt textarea { width: 100%; font-family: var(--font-mono); font-size: 12px; min-height: 90px; resize: vertical; }
#tt .tt-badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; letter-spacing: 0.02em; white-space: nowrap;
  color: var(--c); background: color-mix(in srgb, var(--c) 15%, transparent); }
#tt .tt-badge.s0 { --c: var(--low); }
#tt .tt-badge.s1 { --c: var(--med); }
#tt .tt-badge.s2 { --c: var(--high); }
#tt .chip { display: inline-block; font-size: 11.5px; padding: 1px 8px; border-radius: 4px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
#tt .chip.warn { color: var(--med); background: color-mix(in srgb, var(--med) 14%, transparent); font-weight: 600; }
#tt .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); flex: none; }
#tt .dot.s0 { --c: var(--low); }
#tt .dot.s1 { --c: var(--med); }
#tt .dot.s2 { --c: var(--high); }
#tt .dot.sn { --c: var(--muted); opacity: 0.5; }
#tt .group { margin-bottom: 22px; }
#tt .group > h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
#tt .rows { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
#tt .tt-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.7fr) auto; gap: 4px 18px; padding: 10px 14px; align-items: baseline; }
#tt .tt-row + .tt-row { border-top: 1px solid var(--line); }
#tt .tt-row .name { font-weight: 600; }
#tt .tt-row .why { grid-column: 1; color: var(--muted); font-size: 13px; }
#tt .tt-row .val { grid-column: 2; grid-row: 1 / span 2; font-family: var(--font-mono); font-size: 13px; overflow-wrap: anywhere; user-select: all; }
#tt .tt-row .tags { grid-column: 3; grid-row: 1 / span 2; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 720px) {
  #tt .tt-row { grid-template-columns: minmax(0, 1fr); }
  #tt .tt-row .val, #tt .tt-row .tags { grid-column: 1; grid-row: auto; justify-content: flex-start; }
}
#tt .counts { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-bottom: 18px; }
#tt .count b { font-family: var(--font-display); font-size: 24px; margin-right: 6px; font-variant-numeric: tabular-nums; }
#tt .count span { color: var(--muted); }
#tt .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; margin-bottom: 18px; }
#tt .panel h2 { font-size: 16px; margin-bottom: 4px; }
#tt .panel .sub { color: var(--muted); font-size: 13.5px; margin-bottom: 10px; max-width: 70ch; }
#tt .formrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
#tt .formrow input[type="text"] { flex: 1 1 200px; }
#tt .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#tt .wchip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 6px; padding: 3px 4px 3px 10px; font-size: 13px; }
#tt .wchip button { background: none; border: 0; padding: 0 6px; color: var(--muted); font-size: 16px; line-height: 1; }
#tt .check { display: inline-flex; gap: 8px; align-items: center; }
#tt .loader { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
#tt .drop { flex: 1 1 280px; border: 1.5px dashed var(--line); border-radius: 8px; padding: 12px 14px; color: var(--muted); background: var(--surface); }
#tt .drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }
#tt details.how { margin-bottom: 14px; }
#tt details.how summary { cursor: pointer; font-weight: 600; color: var(--accent); }
#tt details.how ul { margin: 8px 0 0; padding-left: 20px; color: var(--muted); max-width: 80ch; }
#tt .banner { background: color-mix(in srgb, var(--mark) 30%, var(--surface)); border: 1px solid color-mix(in srgb, var(--mark) 60%, var(--line)); color: var(--fg); border-radius: 8px; padding: 8px 12px; margin-bottom: 12px; font-size: 14px; }
#tt .summary { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin-bottom: 10px; }
#tt .summary .count b { font-size: 20px; }
#tt .split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 16px; align-items: start; }
@media (max-width: 860px) {
  #tt .split { grid-template-columns: minmax(0, 1fr); }
}
#tt .list { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
#tt .list details + details { border-top: 1px solid var(--line); }
#tt .list summary { display: flex; align-items: center; gap: 8px; padding: 9px 12px; cursor: pointer; font-weight: 600; list-style: none; }
#tt .list summary::-webkit-details-marker { display: none; }
#tt .list summary::before { content: "▸"; color: var(--muted); font-size: 12px; width: 10px; }
#tt .list details[open] > summary::before { content: "▾"; }
#tt .list summary .host { overflow-wrap: anywhere; min-width: 0; }
#tt .list summary .n { margin-left: auto; color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
#tt .frow { display: flex; width: 100%; gap: 10px; justify-content: space-between; align-items: baseline; text-align: left; background: none; border: 0; border-top: 1px solid var(--line);
  padding: 7px 12px 7px 30px; }
#tt .frow:hover { background: var(--surface-2); }
#tt .frow[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 14%, var(--surface)); box-shadow: inset 3px 0 0 var(--accent); }
#tt .frow .l { min-width: 0; }
#tt .frow .r { color: var(--muted); font-size: 12.5px; text-align: right; min-width: 0; overflow-wrap: anywhere; }
#tt .quiet { padding: 9px 12px; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }
#tt .detail { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; min-width: 0; }
@media (min-width: 861px) {
  #tt .detail { position: sticky; top: 12px; max-height: calc(100vh - 28px); overflow: auto; }
}
#tt .detail .empty { color: var(--muted); text-align: center; padding: 30px 10px; }
#tt .dhead { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
#tt .dhead h3 { font-size: 20px; }
#tt .sec { margin-bottom: 14px; }
#tt .sec h4 { margin: 0 0 4px; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
#tt .kv { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 2px 8px; font-size: 14px; }
#tt .kv dt { color: var(--muted); font-size: 12.5px; }
#tt .kv dd { margin: 0; overflow-wrap: anywhere; }
#tt .note { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
#tt pre.code { margin: 0; background: var(--surface-2); border-radius: 6px; padding: 9px 10px; font-family: var(--font-mono); font-size: 12px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 340px; overflow: auto; user-select: text; }
#tt mark { background: var(--mark); color: var(--mark-fg); border-radius: 2px; padding: 0 1px; }
#tt .secret { font-family: var(--font-mono); }
#tt .foot { margin-top: 36px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 13.5px; }
#tt .foot h2 { font-size: 15px; color: var(--fg); margin-bottom: 6px; }
#tt .foot ul { padding-left: 20px; margin: 0; max-width: 90ch; display: grid; gap: 4px; }
#tt #toast { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--fg); color: var(--bg);
  padding: 8px 14px; border-radius: 6px; font-size: 13.5px; opacity: 0; pointer-events: none; transition: opacity 0.15s; max-width: calc(100vw - 32px); }
#tt #toast.show { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  #tt #toast { transition: none; }
}
#tt .urlbar { display: flex; gap: 8px; margin: 10px 0 6px; }
#tt .urlbar input { flex: 1; min-width: 0; font: 15px var(--font-mono); padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); }
#tt .urlbar input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#tt .tt-btn:disabled { opacity: .5; cursor: not-allowed; }
#tt .banner.warnb { border-color: var(--line); background: var(--surface); }
#tt #site-bridge.warn { color: var(--fg); font-weight: 500; }
#tt #site-out .group { margin-top: 18px; }
#tt #site-out .val .wchip { margin: 0 4px 4px 0; }
#tt .legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; margin: 8px 0; }
#tt .lg { display: inline-flex; align-items: center; gap: 6px; }
#tt .lg i.sw { width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line); }
#tt .lg i.ln { width: 20px; border-top: 2px solid var(--muted); }
#tt .lg i.ln.dash { border-top-style: dashed; }
#tt .lg i.sd { width: 9px; height: 9px; border-radius: 50%; }
#tt .sw.c-first, #tt .host.c-first rect { fill: var(--c-first); }
#tt .mapwrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 8px; }
#tt .gmap { width: 100%; min-width: 640px; height: auto; display: block; font-family: var(--font-body); }
#tt .gmap .gh { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; fill: var(--muted); font-weight: 600; }
#tt .gmap .nl { font-size: 12.5px; fill: var(--fg); }
#tt .gmap .ns { font-size: 10.5px; fill: var(--muted); }
#tt .gmap .node { cursor: pointer; outline: none; }
#tt .gmap .node rect { fill: var(--bg); stroke: var(--line); stroke-width: 1; }
#tt .gmap .node:hover rect, #tt .gmap .node:focus-visible rect, #tt .gmap .node.pinned rect { stroke: var(--accent); stroke-width: 2; }
#tt .gmap .node.dim, #tt .gmap .edge.dim { opacity: .15; }
#tt .gmap .node.cookie rect { stroke-dasharray: 3 2; }
#tt .gmap .node.owner.unknown rect { stroke-dasharray: 3 2; }
#tt .gmap .node.owner.first rect { stroke: var(--c-first); }
#tt .gmap .edge { fill: none; stroke: var(--muted); opacity: .55; }
#tt .gmap .edge.owns { opacity: .3; stroke-width: 1; }
#tt .gmap .edge.infers { stroke-dasharray: 5 4; }
#tt .gmap .edge.value { stroke: var(--accent); opacity: .7; }
#tt .gmap .node.host rect { stroke-width: 1.5; }
#tt .sd.s0 { fill: var(--muted); background: var(--muted); }
#tt .sd.s1 { fill: #d49a1f; background: #d49a1f; }
#tt .sd.s2 { fill: #d0452f; background: #d0452f; }
#tt #map-detail h3 { margin: 0 0 4px; font-size: 14px; }
#tt #map-detail { margin-top: 10px; }
#tt ul.plain { margin: 6px 0; padding-left: 18px; font-size: 13px; }
#tt .node.host.c-first rect, #tt .sw.c-first { stroke: var(--c-first); }
#tt .sw.c-first { background: var(--c-first); }
#tt .node.host.c-ad rect, #tt .sw.c-ad { stroke: var(--c-ad); }
#tt .sw.c-ad { background: var(--c-ad); }
#tt .node.host.c-an rect, #tt .sw.c-an { stroke: var(--c-an); }
#tt .sw.c-an { background: var(--c-an); }
#tt .node.host.c-px rect, #tt .sw.c-px { stroke: var(--c-px); }
#tt .sw.c-px { background: var(--c-px); }
#tt .node.host.c-rp rect, #tt .sw.c-rp { stroke: var(--c-rp); }
#tt .sw.c-rp { background: var(--c-rp); }
#tt .node.host.c-so rect, #tt .sw.c-so { stroke: var(--c-so); }
#tt .sw.c-so { background: var(--c-so); }
#tt .node.host.c-cd rect, #tt .sw.c-cd { stroke: var(--c-cd); }
#tt .sw.c-cd { background: var(--c-cd); }
#tt .node.host.c-unk rect, #tt .sw.c-unk { stroke: var(--c-unk); }
#tt .sw.c-unk { background: var(--c-unk); }
#tt .cb.c-first { fill: var(--c-first); stroke: none !important; }
#tt .cb.c-ad { fill: var(--c-ad); stroke: none !important; }
#tt .cb.c-an { fill: var(--c-an); stroke: none !important; }
#tt .cb.c-px { fill: var(--c-px); stroke: none !important; }
#tt .cb.c-rp { fill: var(--c-rp); stroke: none !important; }
#tt .cb.c-so { fill: var(--c-so); stroke: none !important; }
#tt .cb.c-cd { fill: var(--c-cd); stroke: none !important; }
#tt .cb.c-unk { fill: var(--c-unk); stroke: none !important; }
#tt .cb.c-ot { fill: var(--c-ot); stroke: none !important; }
#tt .cb.c-em { fill: var(--c-em); stroke: none !important; }
#tt .cb.c-id { fill: var(--c-id); stroke: none !important; }
#tt .cb.c-fr { fill: var(--c-fr); stroke: none !important; }
#tt .cb.c-ch { fill: var(--c-ch); stroke: none !important; }
#tt .cb.c-pay { fill: var(--c-pay); stroke: none !important; }
#tt .cb.c-tm { fill: var(--c-tm); stroke: none !important; }
#tt .cb.c-cm { fill: var(--c-cm); stroke: none !important; }
#tt .cb.c-mw { fill: var(--c-mw); stroke: none !important; }
#tt .cb.c-nt { fill: var(--c-nt); stroke: none !important; }
#tt .gmap .node .cb { stroke: none; }
#tt .tabs { overflow-x: auto; scrollbar-width: none; }
#tt .tab { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 480px) {
  #tt .tab { padding-left: 10px; padding-right: 10px; font-size: 14px; }
}
#tt .cgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
#tt .cbox { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
#tt .cbox h2 { font-size: 15px; margin-bottom: 2px; display: flex; justify-content: space-between; gap: 8px; }
#tt .cbox h2 .n { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; }
#tt .cbox .note { margin-bottom: 10px; }
#tt .cchips { display: flex; flex-wrap: wrap; gap: 6px; }
#tt .vchip { display: inline-flex; align-items: center; gap: 6px; background: var(--surface-2); border-radius: 6px; padding: 3px 9px; font-size: 13px; }
#tt .vchip.info { color: var(--muted); }
