/* Live register band, "Who's reading" figures and the full register list (bulletin.js), in Monolith:
   black, white type, hairlines. Uses the tokens from pages.css (--bg, --well, --line, --text, --muted,
   --sans, --mono); no colour here, because colour on this site only means a verdict. */

.rb{background:var(--bg);color:var(--text);border-bottom:1px solid var(--line);
  padding-left:max(var(--gutter,16px), env(safe-area-inset-left, 0px));
  padding-right:max(var(--gutter,16px), env(safe-area-inset-right, 0px))}
.rb-in{max-width:calc(var(--max,1520px) - 2 * var(--gutter,16px));margin:0 auto;display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px 24px;min-height:46px;padding-block:6px;font-size:.86rem;line-height:1.35}
.rb-head{margin:0;display:flex;align-items:center;gap:9px;white-space:nowrap}
.rb-dot{flex:none;position:relative;width:8px;height:8px;border-radius:50%;background:currentColor}
.rb-dot::after{content:"";position:absolute;inset:-5px;border-radius:50%;border:1.5px solid currentColor;opacity:0}
.rb[data-state="live"] .rb-dot::after{animation:rb-pulse 2.6s cubic-bezier(.23,1,.32,1) infinite}
.rb:not([data-state="live"]) .rb-dot{background:transparent;box-shadow:inset 0 0 0 1.5px currentColor}
.rb-state{font-weight:700;font-stretch:87.5%;letter-spacing:.02em;text-transform:uppercase;font-size:.78rem}
.rb-title{color:var(--muted)}

.rb-msg{margin:0;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
.rb-msg[hidden],.rb-lines[hidden],.rb-count[hidden]{display:none}
.rb-lines{list-style:none;margin:0;padding:0;display:flex;min-width:0;overflow:hidden;
  -webkit-mask-image:linear-gradient(90deg,#000 80%,transparent);mask-image:linear-gradient(90deg,#000 80%,transparent)}
.rb-lines li{flex:none;display:flex;align-items:center;gap:7px;padding:0 18px;margin:0;white-space:nowrap;border-left:1px solid var(--line);color:var(--muted)}
.rb-lines li:first-child{padding-left:0;border-left:0}
.rb-when{font-family:var(--mono);font-stretch:87.5%;font-size:.74rem}
.rb-agent{font-weight:650;font-stretch:87.5%;color:var(--text)}
.rb-res{font-family:var(--mono);font-stretch:87.5%;font-size:.78rem;color:var(--text)}
.rb-side{margin:0;display:flex;align-items:center;gap:16px;white-space:nowrap}
.rb-count{font-size:.8rem;font-variant-numeric:tabular-nums;color:var(--muted)}
.rb a{color:var(--text);font-weight:600;display:inline-block;padding-block:6px}
.rb-new{animation:rb-in .44s cubic-bezier(.23,1,.32,1) both}

@keyframes rb-in{from{opacity:0;transform:translateX(-16px)}to{opacity:1;transform:none}}
@keyframes rb-pulse{0%{opacity:.75;transform:scale(.5)}75%,100%{opacity:0;transform:scale(1.35)}}

@media (max-width: 999px){ .rb-count,.rb-wide{display:none} }
/* Release 11.12 (red audit): above 760px an entry that doesn't fit wraps to a hidden second row instead of being cut
   mid-word, so every entry shown is whole. */
@media (min-width: 761px){
  .rb-lines{flex-wrap:wrap;align-content:flex-start;height:1.75em;-webkit-mask-image:none;mask-image:none}
  .rb-lines li{height:1.75em}
  /* the first entry may be wider than the list: its words wrap onto the hidden row, so it still ends on a whole word */
  .rb-lines li:first-child{flex:0 1 auto;min-width:0;flex-wrap:wrap;white-space:normal;overflow:hidden;row-gap:0}
  .rb-lines li:first-child > *{min-width:0}
}

@media (max-width: 760px){
  .rb-in{grid-template-columns:minmax(0,1fr) auto;gap:2px 14px;padding-block:8px 10px}
  .rb-head{grid-column:1;grid-row:1;min-width:0}
  .rb-side{grid-column:2;grid-row:1}
  .rb-msg,.rb-lines{grid-column:1 / -1;grid-row:2}
  .rb-msg{white-space:normal}
  .rb-lines{-webkit-mask-image:none;mask-image:none}
  .rb-lines li:not(:first-child){display:none}
  .rb-lines li{flex:1 1 auto;min-width:0;padding:0;flex-wrap:wrap;white-space:normal;row-gap:0}
  .rb-count,.rb-wide{display:none}
  /* Longer state words ("Not connected", "Connecting") leave no room for the title. */
  .rb:not([data-state="live"]) .rb-title{display:none}
}
@media (max-width: 340px){.rb-title{display:none}}

/* Full register on /agents/ */
.reg-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:8px 24px;margin-bottom:16px}
.reg-top p{color:var(--muted);font-size:.93rem}
.reg-top p[hidden]{display:none}
.reg-list{list-style:none;margin:0;padding:0;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,26rem),1fr));column-gap:32px}
.reg-list[hidden]{display:none}
.reg-list li{display:grid;grid-template-columns:5.2rem minmax(0,1fr);gap:2px 14px;padding:12px 0;margin:0;border-bottom:1px solid var(--line);font-size:.92rem;line-height:1.4}
.reg-when{grid-row:span 2;font-family:var(--mono);font-stretch:87.5%;font-size:.76rem;color:var(--muted);font-variant-numeric:tabular-nums;padding-top:.15em}
.reg-when span{display:block}
.reg-who b{font-weight:650;font-stretch:87.5%}
.reg-who small{margin-left:7px;font-size:.76rem;color:var(--muted)}
.reg-what{color:var(--muted)}
.reg-what code{font-size:.8rem;color:var(--text)}
.reg-new{animation:reg-ink 1.8s cubic-bezier(.23,1,.32,1) both}
@keyframes reg-ink{from{background:var(--raised,#111)}to{background:transparent}}
.reg-empty,.vis-empty{margin:0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);color:var(--muted)}
.reg-empty b,.vis-empty b{display:block;color:var(--text);font-weight:650;margin-bottom:2px}
.reg-empty[hidden],.vis-empty[hidden]{display:none}

/* Figures: line-drawn in white, one look per client family (picked by a hash of its label).
   Verishell's own agents have a solid body with a V; agent IDs a solid body carrying a card;
   browsers are hollow (could be a person); unidentified clients are dashed. */
.fig{flex:none;display:inline-block;vertical-align:middle;overflow:visible;color:var(--text)}
.fig .ink *{stroke:currentColor;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.fig .ink line{fill:none}
.fig .fill{fill:var(--bg)}
.fig .solid{fill:currentColor}
.fig .eye{fill:currentColor}
.fig .pupil{fill:var(--bg)}
.fig .dot{fill:currentColor}
.fig .badge{fill:none;stroke:var(--bg);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.fig .card{fill:var(--bg);stroke:none}
.fig .card-line{stroke:currentColor;stroke-width:1.6;stroke-linecap:round}
.fig-browser{opacity:.72}
.fig-browser .fill,.fig-browser .solid{fill:none}
.fig-unknown .ink *{stroke-dasharray:3 2.5}
.reg-who .fig{margin-right:7px;vertical-align:-5px}

/* "Who's reading": one figure per client family seen recently */
.visitors-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 40px;margin-bottom:24px}
.vis-stats{display:flex;flex-wrap:wrap;gap:10px 36px}
.vis-stats[hidden]{display:none}
.vis-stats .stat{display:grid;line-height:1.1}
.vis-stats b{font-weight:800;font-stretch:75%;font-size:clamp(2rem,3vw,2.8rem);font-variant-numeric:tabular-nums;color:var(--text)}
.vis-stats span{font-size:.8rem;color:var(--muted)}
.vis-list{list-style:none;margin:0;padding:24px 0 4px;display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:28px 20px;border-top:1px solid var(--line)}
.vis-list[hidden]{display:none}
.vis{display:grid;justify-items:start;align-content:start;gap:1px;min-width:0;margin:0;font-size:.86rem;line-height:1.35}
.vis .fig{margin-bottom:10px}
.vis b{font-weight:700;font-stretch:87.5%;font-size:1rem}
.vis-kind{font-size:.75rem;color:var(--muted)}
.vis-what{margin-top:4px;color:var(--muted)}
.vis-what code{font-size:.78rem;color:var(--text)}
.vis-when,.vis-today{font-size:.76rem;color:var(--muted);font-variant-numeric:tabular-nums}
.vis-new .fig{animation:vis-arrive .5s cubic-bezier(.23,1,.32,1) both}
@keyframes vis-arrive{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}

@media (prefers-reduced-motion: reduce){
  .rb-new,.reg-new,.vis-new .fig{animation:none}
  .rb[data-state="live"] .rb-dot::after{animation:none}
}
