/* ~/lab/whois: the Roblox account lookup. Shared window, panes, help, facts and status come from ../base.css. */
.ask { display: flex; gap: 10px; margin: 14px 14px 0; }
.ask input { flex: 1; min-width: 0; font-size: 15px; padding: 10px 12px; border-radius: 10px; }
.ask .btn { font-size: 14px; min-width: 13ch; } /* wide enough for "| looking up", so the box doesn't jump */
.ask .btn.busy { cursor: progress; opacity: 1; } /* busy, not unavailable: keep it bright */
.ask.shake { animation: shake 0.32s ease-in-out; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.examples { margin: 10px 14px 0; font-size: 12px; color: var(--dim); }
.linkish { font: inherit; color: var(--blue); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkish:hover { color: var(--white); }
.statusline { display: flex; align-items: baseline; gap: 8px; min-height: 1.6em; margin: 8px 14px 6px; font-size: 13px; }
.statusline .status { margin: 0; }
.spin { color: var(--accent); font-weight: 700; width: 1ch; }
.spin:empty { display: none; }
.elapsed { color: var(--dim); }
.dimlink { color: var(--dim); }

.win.whois { width: min(1440px, 100% - 2 * clamp(12px, 3vw, 40px)); }
.results > .pane, .skeleton > .pane, .cols { margin: 16px clamp(18px, 4vw, 40px) 0; }
.skeleton { padding-bottom: 22px; }
/* two stacks of panes: the grid stretches both to the taller one, and each stack's last pane takes up
   the rest, so the columns always end level whatever the account's data */
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.stack > .pane:last-child { flex: 1; }
.cols.measuring { align-items: start; }
.cols.measuring .stack > .pane:last-child { flex: none; }
.none { margin: 0; font-size: 13px; color: var(--mist); }

/* ---------- profile ---------- */
.profile-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 16px 24px; align-items: start; }
.profile-body.noshot { grid-template-columns: minmax(0, 1fr); }
.headshot { width: 150px; height: 150px; border-radius: 14px; border: 1px solid var(--line); background: #07111a; overflow: hidden; }
.headshot img { width: 100%; height: 100%; }
.who h2 { margin: 0; font-size: 22px; line-height: 1.25; color: var(--white); overflow-wrap: anywhere; }
.tick { font-size: 12px; font-weight: 500; color: var(--blue); border: 1px solid rgba(96, 165, 250, 0.55); padding: 1px 6px; border-radius: 6px; vertical-align: 0.2em; white-space: nowrap; }
.handle { margin: 2px 0 8px; color: var(--mist); overflow-wrap: anywhere; }
.joined { margin: 0 0 8px; font-size: 13px; color: var(--mist); }
.joined b { color: var(--white); font-weight: 500; }
.flag { margin: 0 0 8px; font-size: 13px; color: var(--white); }
.flag::before { content: "! "; color: var(--accent); font-weight: 700; }
.about { margin: 0 0 12px; max-width: 80ch; font-size: 13px; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.about .linkish { margin-left: 6px; }
.glance { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; padding: 0; }
.glance:empty { display: none; }
.glance li { font-size: 12px; color: var(--mist); padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: rgba(255, 255, 255, 0.02); }
.glance b { color: var(--white); font-weight: 500; }
.links { display: flex; flex-wrap: wrap; gap: 8px; }
/* the profile's actions: a line icon each; the export reads as "save a file" (cyan-tinted, a PNG tag) */
.btn.act { gap: 7px; }
.ico { width: 14px; height: 14px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ico .i-ok { display: none; }
.act.done .ico .i-go { display: none; }
.act.done .ico .i-ok { display: inline; }
.act.done .ico { color: var(--mint); }
.btn.act.copy { min-width: 15ch; } /* resting widths, so a short "copied" or "saved" doesn't make the row jump */
.btn.export { min-width: 24ch; border-color: rgba(52, 224, 234, 0.45); background: rgba(8, 145, 178, 0.14); color: var(--white); }
.btn.export:hover { border-color: var(--accent); background: rgba(8, 145, 178, 0.24); }
.btn.export .ico { color: var(--accent); }
.btn.export .fmt { margin-left: 2px; padding: 0 5px; border-radius: 6px; border: 1px solid rgba(52, 224, 234, 0.3); color: var(--mist); font-size: 12px; line-height: 1.45; letter-spacing: 0.04em; }
.btn.export.busy { cursor: progress; opacity: 1; } /* busy, not unavailable */
.btn.export.busy .ico .i-go { animation: bob 0.7s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(2px); } }
.headshot img { opacity: 0; transition: opacity 0.35s ease-out; }
.headshot img.loaded { opacity: 1; }

/* ---------- alt-check ---------- */
.verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 10px; }
.score { font-size: 34px; font-weight: 700; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; }
.of { font-size: 12px; color: var(--dim); }
.v-text { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; }
.v-main .v-text { color: var(--mint); }
.v-mixed .v-text { color: var(--blue); }
.v-alt .v-text { color: var(--white); }
.v-alt .v-text::before { content: "! "; color: var(--accent); font-weight: 700; }
.meter { position: relative; height: 8px; margin: 14px 0 4px; border-radius: 999px; background: linear-gradient(90deg, rgba(134, 239, 172, 0.35), rgba(96, 165, 250, 0.3) 50%, rgba(52, 224, 234, 0.45)); }
.meter i { position: absolute; top: -4px; left: 0; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; background: var(--white); transition: left 0.9s cubic-bezier(0.2, 0.8, 0.2, 1); }
.meter-scale { display: flex; justify-content: space-between; margin: 0 0 14px; font-size: 12px; color: var(--dim); }
.reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.reasons li { display: grid; grid-template-columns: 4.5ch minmax(0, 1fr); gap: 10px; align-items: baseline; color: var(--text); }
.pts { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.pts.up { color: var(--accent); }
.pts.down { color: var(--mint); }
.reasons li.cap { color: var(--dim); } /* a cap taking a group's excess back off */
.reasons li.cap .pts { color: var(--dim); font-weight: 400; }
.skipped { margin: 14px 0 0; font-size: 12px; color: var(--dim); }
.skipped b { color: var(--mist); font-weight: 400; }
.thin { margin: 12px 0 0; font-size: 12px; color: var(--mist); }

/* ---------- badge history ---------- */
.chart { display: block; width: 100%; height: auto; }
.chart .bar { fill: #0e8d96; }
.chart .bar.peak { fill: var(--accent); }
.chart .bar:hover { fill: var(--white); }
.chart .dot { fill: var(--accent); fill-opacity: 0.7; }
.chart .day:hover .dot { fill: var(--white); fill-opacity: 1; }
/* dots / bars switch in the pane head */
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.seg-btn { font: inherit; font-size: 12px; padding: 2px 10px; color: var(--mist); background: none; border: 0; cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line); }
.seg-btn:hover { color: var(--white); }
.seg-btn:focus-visible { outline-offset: -2px; }
.seg-btn[aria-pressed="true"] { background: rgba(8, 145, 178, 0.25); color: var(--white); }
.chart .axis { stroke: var(--line); }
.chart .grid { stroke: rgba(52, 224, 234, 0.07); }
.chart text { fill: var(--dim); font-family: var(--mono); font-size: 12px; }
.chart-note { margin: 10px 0 0; font-size: 13px; color: var(--mist); }
.chart.sweep { animation: sweep 0.9s ease-out; }
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } }
/* hover readout: a crosshair and a small label that follows the pointer */
.activity .pane-body { position: relative; }
.chart .cross { stroke: rgba(226, 238, 243, 0.35); stroke-dasharray: 2 3; }
.chart .ring { fill: none; stroke: var(--white); stroke-width: 1.5; }
.chart .anno { fill: var(--mist); }
.tip {
  position: absolute; z-index: 3; pointer-events: none; transform: translate(-50%, calc(-100% - 12px));
  padding: 4px 9px; border-radius: 6px; border: 1px solid var(--line); background: rgba(5, 11, 18, 0.96);
  font-size: 12px; color: var(--white); white-space: nowrap;
}
.tip .dim { margin-left: 6px; }
.chart-note b { color: var(--white); font-weight: 500; }

/* ---------- arriving results: panes rise in one after another ---------- */
.results.reveal .pane { animation: rise 0.45s ease-out backwards; animation-delay: calc(var(--n, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* ---------- loading: placeholder panes with a slow shimmer ---------- */
.skeleton .pane-head { color: var(--dim); }
.skeleton .pane.grow { flex: 1; }
.sk {
  height: 12px; margin: 0 0 12px; border-radius: 6px;
  background: linear-gradient(90deg, rgba(52, 224, 234, 0.05) 30%, rgba(52, 224, 234, 0.13) 50%, rgba(52, 224, 234, 0.05) 70%);
  background-size: 300% 100%; animation: shimmer 1.6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk.tall { height: 22px; }
.sk.sk-score { height: 34px; }
.sk.thin-bar { height: 8px; margin: 16px 0 22px; }
.sk-shot { width: 150px; height: 150px; border-radius: 14px; margin: 0; }
.sk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sk-chips .sk { width: 82px; height: 20px; }
.sk.w15 { width: 15%; } .sk.w20 { width: 20%; } .sk.w25 { width: 25%; } .sk.w30 { width: 30%; } .sk.w35 { width: 35%; }
.sk.w40 { width: 40%; } .sk.w45 { width: 45%; } .sk.w50 { width: 50%; } .sk.w55 { width: 55%; } .sk.w60 { width: 60%; }
.sk.w65 { width: 65%; } .sk.w70 { width: 70%; } .sk.w75 { width: 75%; } .sk.w80 { width: 80%; } .sk.w85 { width: 85%; }
/* the chart placeholder: an empty plot with a scan line sweeping across it */
.sk-chart { position: relative; height: 190px; margin: 0 0 14px; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(rgba(52, 224, 234, 0.07), rgba(52, 224, 234, 0.07)) 0 50% / 100% 1px no-repeat; }
.sk-chart i { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: rgba(52, 224, 234, 0.45); animation: scan 1.8s ease-in-out infinite alternate; }
@keyframes scan { to { left: calc(100% - 2px); } }

/* ---------- recently looked up (by anyone) ---------- */
.feed { margin: 22px clamp(18px, 4vw, 40px) 24px; }
.feed-head { margin: 0 0 12px; font-size: 14px; font-weight: 400; color: var(--text); }
.feed-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.feed-card {
  display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center;
  padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(5, 11, 18, 0.55);
  transition: border-color 0.2s;
}
.feed-card:hover { border-color: rgba(52, 224, 234, 0.4); }
.feed-card .av { grid-row: 1 / 3; width: 48px; height: 48px; border-radius: 10px; border: 1px solid var(--line); background: #07111a; }
.feed-card .nm { align-self: end; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--white); font-weight: 500; }
.feed-card .nm .v { color: var(--blue); font-size: 12px; margin-left: 4px; }
.feed-card .un { align-self: start; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--dim); }
.feed-card .sum { grid-column: 1 / -1; margin: 10px 0 0; font-size: 12px; color: var(--mist); }
.feed-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-size: 12px; color: var(--dim); }

/* ---------- details ---------- */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.list li { display: flex; justify-content: space-between; gap: 12px; min-width: 0; }
.list li > :first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .n { flex: none; color: var(--dim); }
.sub { margin: 14px 0 8px; font-size: 12px; font-weight: 400; color: var(--dim); }
.facts dd b { color: var(--white); font-weight: 500; }

@media (max-width: 1180px) {
  .feed-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .cols { grid-template-columns: 1fr; }
  .feed-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .feed-cards { grid-template-columns: 1fr; }
  .ask { flex-direction: column; }
  .profile-body { grid-template-columns: 1fr; }
  .headshot, .sk-shot { width: 96px; height: 96px; }
}
