/* ============================================================
   Agent Docket — marketing site ("Mono" theme)
   Ported 1:1 from design_handoff_mono_landing (see README there).
   ============================================================ */

:root {
  --canvas: #FBFBF9;
  --slab: #F1F1EC;
  --card: #FFFFFF;
  --ink: #14140F;
  --body: #55554E;
  --faint: #8A8A82;
  --faintest: #BFBFB6;
  --hair: rgba(20, 20, 15, 0.12);
  --hair-mid: rgba(20, 20, 15, 0.14);
  --hair-em: rgba(20, 20, 15, 0.16);
  --tint-05: rgba(20, 20, 15, 0.05);
  --tint-06: rgba(20, 20, 15, 0.06);
  --ok: #1E7A4A;
  --warn: #A8690A;
  --err: #B3362E;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --serif: 'Newsreader', Georgia, serif;
  --sans: 'Public Sans', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', monospace;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: var(--ink); transition: color 200ms var(--ease); }
img { max-width: 100%; }
::selection { background: rgba(20, 20, 15, 0.16); color: var(--ink); }
:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(20, 20, 15, 0.45); }

@keyframes ppr-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@keyframes ppr-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

/* ---- shared primitives ---- */
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.kicker--ink { color: var(--ink); display: flex; align-items: center; gap: 10px; }
.kicker--ink .sq { width: 7px; height: 7px; background: var(--ink); }

.h2 {
  margin: 18px 0 0;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.05;
  color: var(--ink);
}

.btn {
  border-radius: 2px;
  font-family: var(--sans);
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  text-align: center;
}
.btn--primary {
  background: var(--ink);
  color: #FFFFFF;
  border: none;
  transition: background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn--primary:hover { background: #000000; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(20, 20, 15, 0.18); }
.btn--primary:active { transform: translateY(0); box-shadow: none; }
.btn--outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(20, 20, 15, 0.3);
  transition: border-color 200ms var(--ease), color 200ms var(--ease), background 200ms var(--ease);
}
.btn--outline:hover { border-color: var(--ink); background: var(--tint-05); }
.btn--outline:active { background: rgba(20, 20, 15, 0.1); }
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--sm { padding: 10px 20px; font-size: 13.5px; }

.dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); display: inline-block; }
.dot--pulse { width: 6px; height: 6px; animation: ppr-pulse 1.6s ease-in-out infinite; }

/* underline-on-hover nav links */
.ppr-lnk { position: relative; color: var(--body); }
.ppr-lnk:hover { color: var(--ink); }
.ppr-lnk::after {
  content: '';
  position: absolute;
  left: 0; right: 100%; bottom: -3px;
  height: 1px;
  background: currentColor;
  transition: right 260ms var(--ease);
}
.ppr-lnk:hover::after { right: 0; }

.ppr-go { display: inline-flex; align-items: baseline; gap: 6px; font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
.ppr-go:hover { color: #000000; }
.ppr-go .ppr-ar { display: inline-block; transition: transform 240ms var(--ease); }
.ppr-go:hover .ppr-ar { transform: translateX(4px); }

/* ---- nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 251, 249, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hair);
  transition: box-shadow 320ms var(--ease);
}
.nav__inner { height: 68px; display: flex; align-items: center; gap: 48px; }
.nav__logo { height: 42px; display: block; }
.nav__links { display: flex; gap: 28px; flex: 1; font-size: 14px; }

/* ---- hero ---- */
.hero {
  scroll-margin-top: 88px;
  padding-top: 88px;
  padding-bottom: 88px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
.hero h1 {
  margin: 26px 0 0;
  font-family: var(--serif);
  font-size: clamp(48px, 5.2vw, 78px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.02;
  color: var(--ink);
  max-width: 15ch;
}
.hero h1 .clio { height: 0.82em; vertical-align: baseline; transform: translateY(0.08em); display: inline-block; }
.hero__sub { margin: 24px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--body); max-width: 48ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 30px; }

/* hero live feed card */
.feedcard {
  background: var(--card);
  border: 1px solid var(--hair-mid);
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(20, 20, 15, 0.05);
  overflow: hidden;
}
.feedcard__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(20, 20, 15, 0.09);
}
.feedcard__label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
  display: flex;
  align-items: center;
  gap: 8px;
}
.feedcard__running {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 6px;
}
.feedcard__running .dot { width: 5px; height: 5px; animation: ppr-pulse 1.6s ease-in-out infinite; }
.feedcard__body { height: 460px; overflow: hidden; position: relative; }
.feedcard__track { animation: ppr-scroll 44s linear infinite; }
.feedcard__body:hover .feedcard__track { animation-play-state: paused; }
.feedrow {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 11px 18px;
  border-bottom: 1px solid rgba(20, 20, 15, 0.08);
  transition: background 200ms var(--ease);
}
.feedrow:hover { background: var(--tint-06); }
.feedrow__time { font-family: var(--mono); font-size: 11px; color: var(--faint); }
.feedrow__text { font-size: 13px; line-height: 1.5; }
.feedrow__text b { font-weight: 600; color: var(--ink); }
.feedrow__text span { color: var(--body); }
.feedchip {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feedchip .dot { width: 5px; height: 5px; background: currentColor; }
.feedchip--done { color: var(--ok); }
.feedchip--review { color: var(--warn); }
.feedchip--escalated { color: var(--err); }
.feedcard__fade {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #FFFFFF);
  pointer-events: none;
}

/* ---- "before you ask" strip ---- */
.strip {
  max-width: 1200px;
  margin: 44px auto;
  padding: 32px 56px;
  background: var(--slab);
  border-radius: 3px;
  border: 1px solid var(--hair-em);
  display: flex;
  align-items: baseline;
  gap: 56px;
  flex-wrap: wrap;
  box-sizing: border-box;
}
.strip__line { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--body); }
.strip__line b { color: var(--ink); font-weight: 500; }

/* ---- live demo section ---- */
.demo { scroll-margin-top: 88px; }
.demo__inner { padding-top: 96px; padding-bottom: 96px; }
.demo__sub { margin: 16px 0 0; font-size: 16.5px; line-height: 1.7; color: var(--body); max-width: 52ch; }
.demo__nosignup {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.demo__frame { position: relative; margin-top: 44px; }
.demo__tick { position: absolute; width: 13px; height: 13px; }
.demo__tick--tl { top: -7px; left: -7px; border-top: 1px solid rgba(20, 20, 15, 0.6); border-left: 1px solid rgba(20, 20, 15, 0.6); }
.demo__tick--tr { top: -7px; right: -7px; border-top: 1px solid rgba(20, 20, 15, 0.6); border-right: 1px solid rgba(20, 20, 15, 0.6); }
.demo__tick--bl { bottom: -7px; left: -7px; border-bottom: 1px solid rgba(20, 20, 15, 0.6); border-left: 1px solid rgba(20, 20, 15, 0.6); }
.demo__tick--br { bottom: -7px; right: -7px; border-bottom: 1px solid rgba(20, 20, 15, 0.6); border-right: 1px solid rgba(20, 20, 15, 0.6); }

/* ---- slab sections (what's inside / control / who) ---- */
.slab {
  max-width: 1200px;
  margin: 52px auto;
  padding: 84px 64px;
  background: var(--slab);
  border-radius: 3px;
  border: 1px solid var(--hair-em);
  box-sizing: border-box;
}
.section { scroll-margin-top: 88px; }

.insiderows { margin-top: 56px; border-bottom: 1px solid var(--hair); }
.insiderow {
  position: relative;
  border-top: 1px solid var(--hair);
  padding: 30px 20px;
  margin: 0 -20px;
  display: grid;
  grid-template-columns: 64px 320px 1fr;
  gap: 40px;
  align-items: start;
  transition: background 240ms var(--ease), box-shadow 240ms var(--ease);
}
.insiderow:hover { background: var(--tint-06); box-shadow: inset 3px 0 0 var(--ink); }
.insiderow__n { font-family: var(--mono); font-size: 12px; color: var(--ink); padding-top: 10px; }
.handle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  color: var(--faint);
}
.insiderow__title {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
  color: var(--ink);
}
.insiderow__desc { margin: 0; font-size: 15px; line-height: 1.7; color: var(--body); max-width: 58ch; padding-top: 4px; }

/* ---- what it runs in Clio ---- */
.caphead { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.caphead__tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  white-space: nowrap;
}
.capgrid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 3px;
  overflow: hidden;
}
.capcell {
  position: relative;
  background: var(--card);
  padding: 24px 22px 28px;
  overflow: hidden;
  transition: background 200ms var(--ease);
}
.capcell:hover { background: var(--tint-05); }
.capcell__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.capcell__n { font-family: var(--mono); font-size: 11px; color: var(--faintest); }
.capcell__title { margin: 0; font-family: var(--serif); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.capcell__desc { margin: 9px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--body); }

/* ---- control section ---- */
.control { display: grid; grid-template-columns: 340px 1fr; gap: 72px; align-items: start; }
.control .h2 { font-size: 44px; line-height: 1.08; max-width: 13ch; }
.ctrlrows { border-bottom: 1px solid var(--hair); }
.ctrlrow {
  position: relative;
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 32px;
  padding: 26px 16px;
  margin: 0 -16px;
  border-top: 1px solid var(--hair);
  transition: background 200ms var(--ease), box-shadow 200ms var(--ease);
}
.ctrlrow:hover { background: var(--tint-05); box-shadow: inset 3px 0 0 var(--ink); }
.ctrlrow__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ctrlrow__n { font-family: var(--mono); font-size: 11px; color: var(--faintest); }
.ctrlrow__title { margin: 0; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.ctrlrow__desc { margin: 0; font-size: 14px; line-height: 1.65; color: var(--body); max-width: 58ch; }

/* ---- how we work ---- */
.how__inner { padding-top: 112px; padding-bottom: 112px; }
.how .h2 { max-width: 20ch; }
.timeline { margin-top: 56px; border-left: 1px solid var(--hair-mid); padding-left: 60px; max-width: 720px; }
.step { position: relative; padding-bottom: 44px; }
.step__num {
  position: absolute;
  left: -73px; top: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--canvas);
  border: 1.5px solid rgba(20, 20, 15, 0.45);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.step__name { font-family: var(--serif); font-size: 25px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.step__meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--hair-em);
  border-radius: 3px;
  padding: 3px 8px;
}
.step__desc { margin: 10px 0 0; font-size: 15px; line-height: 1.65; color: var(--body); max-width: 58ch; }
.step .ppr-go { margin-top: 14px; }
.how__noline { margin: 12px 0 0; font-size: 18px; letter-spacing: -0.01em; }
.how__noline b { font-weight: 600; color: var(--ink); }
.how__noline span { color: var(--body); }

/* ---- who it's for ---- */
.whogrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 48px; }
.whocard {
  background: var(--card);
  border: 1px solid var(--hair-mid);
  border-radius: 3px;
  padding: 22px 22px 24px;
  transition: transform 240ms var(--ease), box-shadow 240ms var(--ease), border-color 240ms var(--ease);
}
.whocard:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20, 20, 15, 0.1); border-color: rgba(20, 20, 15, 0.5); }
.whocard__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.whocard__n { font-family: var(--mono); font-size: 11px; color: var(--faintest); }
.whocard__title { margin: 0; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.whocard__desc { margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--body); min-height: 72px; }
.who__foot {
  margin: 44px 0 0;
  padding-top: 26px;
  border-top: 1px solid var(--hair);
  font-size: 15.5px;
  line-height: 1.6;
}
.who__foot .soft { color: var(--body); }
.who__foot b { color: var(--ink); font-weight: 600; }

/* ---- final CTA ---- */
.book { background: var(--ink); scroll-margin-top: 88px; }
.book__inner {
  padding-top: 108px;
  padding-bottom: 108px;
  display: grid;
  grid-template-columns: 1.32fr 0.68fr;
  gap: 64px;
  align-items: center;
}
.book h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(46px, 5.2vw, 66px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.98;
  color: #FFFFFF;
}
.book__mid { display: flex; align-items: center; gap: 16px; margin: 22px 0; }
.book__midlabel {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
  white-space: nowrap;
}
.book__midlabel .dot { background: #FFFFFF; width: 6px; height: 6px; }
.cliopill { display: inline-flex; align-items: center; background: #FFFFFF; border-radius: 999px; padding: 4px 11px; }
.cliopill img { height: 14px; width: auto; display: block; }
.book__rule { flex: 1; height: 1px; background: rgba(255, 255, 255, 0.28); }
.bookcard {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 30px 28px;
}
.bookcard__kicker {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.bookcard__kicker .dot { background: #FFFFFF; width: 6px; height: 6px; }
.bookcard__pitch { margin: 0 0 22px; font-size: 15.5px; line-height: 1.55; color: #FFFFFF; font-weight: 500; }
.bookcard__btn {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #12141A;
  color: #FFFFFF;
  border: none;
  border-radius: 2px;
  padding: 15px 26px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box;
  transition: background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24);
}
.bookcard__btn:hover { background: #000000; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.34); }
.bookcard__btn:active { transform: translateY(0); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.24); }
.bookcard__btn .ar { font-family: var(--mono); font-size: 14px; }
.bookcard__foot { margin: 14px 0 0; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.72); }

/* ---- footer ---- */
.footer { border-top: 1px solid var(--hair); }
.footer__inner { padding-top: 56px; padding-bottom: 40px; }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.footer__tag { margin: 10px 0 0; font-size: 13.5px; color: var(--faint); }
.footer__links { display: flex; gap: 28px; font-size: 13.5px; }
.footer__base { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(20, 20, 15, 0.1); }
.footer__base span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* ---- responsive (marketing page) ---- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 48px; }
  .insiderow { grid-template-columns: 48px 1fr; }
  .insiderow__desc { grid-column: 2; }
  .capgrid { grid-template-columns: repeat(2, 1fr); }
  .control { grid-template-columns: 1fr; gap: 40px; }
  .ctrlrow { grid-template-columns: 1fr; gap: 12px; }
  .whogrid { grid-template-columns: repeat(2, 1fr); }
  .book__inner { grid-template-columns: 1fr; gap: 48px; }
  .slab { padding: 56px 32px; margin-left: 16px; margin-right: 16px; }
  .strip { margin-left: 16px; margin-right: 16px; padding: 28px 32px; gap: 16px; }
  .h2 { font-size: 38px; }
  .nav__links { display: none; }
}
@media (max-width: 560px) {
  .capgrid { grid-template-columns: 1fr; }
  .whogrid { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
}

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ============================================================
   LIVE DEMO EMBED (formerly css/demo.css)
   ============================================================ */

/* ============================================================
   Agent Docket — interactive "Live demo" embed
   Pure client-side, sample data, fictional firm.
   All classes prefixed ad- to stay out of the page's way.
   ============================================================ */

.ad-root, .ad-root *, .ad-root *::before, .ad-root *::after { box-sizing: border-box; }

.ad-root {
  position: relative;
  height: 848px;
  background: var(--card);
  border: 1px solid var(--hair-mid);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.ad-root__placeholder {
  margin: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--faint);
}

/* ---- chrome strip (persistent) ---- */
.ad-chrome {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 14px;
  height: 34px;
  background: var(--card);
  border-bottom: 1px solid var(--hair);
}
.ad-chrome__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body);
}
.ad-chrome__brand .ad-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: ppr-pulse 1.6s ease-in-out infinite;
}
.ad-chrome__sample {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warn);
  border: 1px solid rgba(168, 105, 10, 0.35);
  border-radius: 2px;
  padding: 3px 8px;
  white-space: nowrap;
}

/* ---- app frame ---- */
.ad-app {
  flex: 1;
  display: grid;
  grid-template-columns: 212px 1fr;
  min-height: 0;
}

/* sidebar */
.ad-side {
  background: var(--card);
  border-right: 1px solid var(--hair);
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.ad-side__firm {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px;
  border-bottom: 1px solid var(--hair);
}
.ad-side__tile {
  flex: none;
  width: 26px; height: 26px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}
.ad-side__name { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.ad-side__nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.ad-side__grouplabel {
  display: block;
  padding: 6px 10px 4px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faintest);
}
.ad-nav__dot { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.ad-nav__dot--ok { background: var(--ok); animation: ad-ring-ok 2.2s ease-out infinite; }
.ad-nav__dot--warn { background: var(--warn); animation: ad-ring-warn 2.2s ease-out infinite; }
@keyframes ad-ring-ok {
  0% { box-shadow: 0 0 0 0 rgba(30, 122, 74, 0.4); }
  60% { box-shadow: 0 0 0 5px rgba(30, 122, 74, 0); }
  100% { box-shadow: 0 0 0 0 rgba(30, 122, 74, 0); }
}
@keyframes ad-ring-warn {
  0% { box-shadow: 0 0 0 0 rgba(168, 105, 10, 0.4); }
  60% { box-shadow: 0 0 0 5px rgba(168, 105, 10, 0); }
  100% { box-shadow: 0 0 0 0 rgba(168, 105, 10, 0); }
}

/* coach callout: an open nudge pointing at the runnable agents */
.ad-coach {
  position: absolute;
  z-index: 25;
  width: 248px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  border: none;
  border-radius: 3px;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 12.5px;
  line-height: 1.55;
  text-align: left;
  box-shadow: 0 16px 34px rgba(20, 20, 15, 0.28);
  cursor: pointer;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 320ms var(--ease), transform 320ms var(--ease), background 200ms var(--ease);
}
.ad-coach.is-on { opacity: 1; transform: none; }
.ad-coach:hover { background: #000000; }
.ad-coach b { color: #FFFFFF; }
.ad-coach__arrow {
  position: absolute;
  left: -4px;
  top: 50%;
  width: 9px;
  height: 9px;
  margin-top: -4.5px;
  background: inherit;
  transform: rotate(45deg);
}
.ad-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  border-radius: 2px;
  padding: 8px 10px;
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--body);
  cursor: pointer;
  transition: background 200ms var(--ease), color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.ad-nav:hover { background: var(--tint-05); color: var(--ink); }
.ad-nav.is-active { background: var(--tint-06); color: var(--ink); box-shadow: inset 2px 0 0 var(--ink); font-weight: 600; }
.ad-nav__label { flex: 1; }
.ad-badge {
  font-family: var(--mono);
  font-size: 10px;
  min-width: 18px;
  text-align: center;
  padding: 1px 5px;
  background: var(--ink);
  color: #FFFFFF;
  border-radius: 2px;
}
.ad-side__rule { display: block; height: 1px; background: var(--hair); margin: 8px 2px; }
.ad-nav--locked { color: var(--faint); cursor: help; }
.ad-nav--locked:hover { background: var(--tint-05); color: var(--faint); }
.ad-nav--locked .ad-nav__label { flex: 1; }
.ad-lock { flex: none; color: var(--faintest); }
.ad-side__foot {
  margin-top: auto;
  padding: 12px 14px;
  border-top: 1px solid var(--hair);
}
.ad-side__pwr {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}

/* main column */
.ad-main { display: flex; flex-direction: column; min-height: 0; background: var(--canvas); }
.ad-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 48px;
  padding: 0 18px;
  background: var(--card);
  border-bottom: 1px solid var(--hair);
}
.ad-head__title { font-size: 13.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.ad-head__right { display: inline-flex; align-items: center; gap: 14px; }
.ad-clio {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--body);
  border: 1px solid var(--hair-em);
  border-radius: 2px;
  padding: 4px 9px;
  background: var(--card);
}
.ad-clio__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); animation: ppr-pulse 1.6s ease-in-out infinite; }
.ad-user { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--body); }
.ad-user b { color: var(--ink); font-weight: 600; }
.ad-user__av {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--mono);
  font-size: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* view container */
.ad-viewwrap { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(20,20,15,0.25) transparent; }
.ad-viewwrap::-webkit-scrollbar { width: 8px; }
.ad-viewwrap::-webkit-scrollbar-thumb { background: rgba(20, 20, 15, 0.18); border-radius: 4px; }
.ad-view { padding: 16px 18px 20px; }
.ad-view--enter { opacity: 0; transform: translateY(8px); }
.ad-view { transition: opacity 240ms var(--ease), transform 240ms var(--ease); }

/* section headers inside views */
.ad-sechead {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 2px 8px;
}
.ad-sechead:first-child { margin-top: 0; }
.ad-kicker {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.ad-sechead__meta { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; color: var(--faintest); }

/* stat cards */
.ad-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ad-stat {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hair-mid);
  border-radius: 3px;
  padding: 12px 14px 13px;
  text-align: left;
  font-family: var(--sans);
  transition: border-color 200ms var(--ease), background 200ms var(--ease);
}
.ad-stat__label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.ad-stat__num {
  margin-top: 7px;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.ad-stat__num small { font-size: 14px; font-weight: 500; color: var(--body); letter-spacing: 0; }
button.ad-stat { cursor: pointer; }
button.ad-stat:hover { border-color: rgba(20, 20, 15, 0.45); background: var(--tint-05); }

/* list card (needs attention) */
.ad-listcard { background: var(--card); border: 1px solid var(--hair-mid); border-radius: 3px; overflow: hidden; }
.ad-att {
  display: grid;
  grid-template-columns: 14px 1fr auto;
  gap: 10px;
  align-items: start;
  padding: 11px 14px;
  border-top: 1px solid var(--hair);
  width: 100%;
  text-align: left;
  background: none;
  border-left: none;
  border-right: none;
  border-bottom: none;
  font-family: var(--sans);
}
.ad-listcard > .ad-att:first-child { border-top: none; }
.ad-att__dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; }
.ad-att__dot--warn { background: var(--warn); }
.ad-att__dot--err { background: var(--err); }
.ad-att__title { font-size: 12.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.ad-att__sub { margin-top: 2px; font-size: 11.5px; line-height: 1.5; color: var(--body); }
.ad-att__meta {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.ad-att__right { display: inline-flex; align-items: center; gap: 8px; padding-top: 3px; }
.ad-chip {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 2px;
  border: 1px solid;
}
.ad-chip--warn { color: var(--warn); border-color: rgba(168, 105, 10, 0.35); background: rgba(168, 105, 10, 0.06); }
.ad-chip--err { color: var(--err); border-color: rgba(179, 54, 46, 0.35); background: rgba(179, 54, 46, 0.06); }
.ad-chip--ok { color: var(--ok); border-color: rgba(30, 122, 74, 0.35); background: rgba(30, 122, 74, 0.06); }
.ad-att__ar { font-family: var(--mono); font-size: 12px; color: var(--faintest); transition: transform 240ms var(--ease), color 240ms var(--ease); }
button.ad-att { cursor: pointer; transition: background 200ms var(--ease), box-shadow 200ms var(--ease); }
button.ad-att:hover { background: var(--tint-05); box-shadow: inset 3px 0 0 var(--ink); }
button.ad-att:hover .ad-att__ar { transform: translateX(3px); color: var(--ink); }

/* agent grid */
.ad-agents { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.ad-agent {
  background: var(--card);
  border: 1px solid var(--hair-mid);
  border-radius: 3px;
  padding: 10px 11px 11px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 74px;
  box-sizing: border-box;
}
.ad-agent__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.ad-agent__dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.ad-agent--active .ad-agent__dot { background: var(--ok); }
.ad-agent--active .ad-agent__status { color: var(--ok); }
.ad-agent--attention .ad-agent__dot { background: var(--warn); }
.ad-agent--attention .ad-agent__status { color: var(--warn); }
.ad-agent--error .ad-agent__dot { background: var(--err); }
.ad-agent--error .ad-agent__status { color: var(--err); }
.ad-agent--idle .ad-agent__dot { background: transparent; border: 1.5px solid var(--faintest); width: 5px; height: 5px; }
.ad-agent--idle .ad-agent__status { color: var(--faint); }
.ad-agent__name { font-size: 12px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.ad-agent__foot { font-family: var(--mono); font-size: 9px; line-height: 1.45; color: var(--faint); }

/* ---- review view ---- */
.ad-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 4px 6px;
  margin: -2px 0 10px -6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--body);
  cursor: pointer;
  border-radius: 2px;
  transition: color 200ms var(--ease), background 200ms var(--ease);
}
.ad-back:hover { color: var(--ink); background: var(--tint-05); }

.ad-result { background: var(--card); border: 1px solid var(--hair-mid); border-radius: 3px; overflow: hidden; }
.ad-result__head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 16px 18px 15px;
  border-bottom: 1px solid var(--hair);
}
.ad-result__title {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.ad-result__meta {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.ad-result__risk { text-align: right; }
.ad-score { margin-top: 8px; font-family: var(--serif); font-weight: 600; color: var(--ink); line-height: 1; }
.ad-score b { font-size: 30px; font-weight: 600; }
.ad-score small { font-size: 13px; color: var(--body); font-weight: 500; }
.ad-score__label {
  margin-top: 3px;
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faintest);
}

.ad-clause { padding: 13px 18px 14px; border-top: 1px solid var(--hair); }
.ad-result__head + .ad-clause { border-top: none; }
.ad-clause__head { display: flex; align-items: center; gap: 10px; }
.ad-clause__name { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.ad-clause__note { margin: 5px 0 0; font-size: 12px; line-height: 1.55; color: var(--body); max-width: 68ch; }
.ad-clause__ask {
  margin-top: 8px;
  padding: 8px 11px;
  background: rgba(20, 20, 15, 0.035);
  box-shadow: inset 2px 0 0 var(--ink);
  border-radius: 2px;
  max-width: 68ch;
}
.ad-clause__asklabel {
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}
.ad-clause__asktext { margin-top: 3px; font-size: 12px; line-height: 1.5; color: var(--ink); font-weight: 500; }

.ad-result__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  border-top: 1px solid var(--hair);
  background: rgba(20, 20, 15, 0.02);
  flex-wrap: wrap;
}
.ad-result__state { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--body); }
.ad-result__state .ad-att__dot { margin-top: 0; }
.ad-result__actions { display: inline-flex; align-items: center; gap: 8px; }

/* demo buttons */
.ad-btn {
  border-radius: 2px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 200ms var(--ease), transform 200ms var(--ease), box-shadow 200ms var(--ease), border-color 200ms var(--ease), color 200ms var(--ease);
}
.ad-btn--primary { background: var(--ink); color: #FFFFFF; border: none; }
.ad-btn--primary:hover { background: #000000; transform: translateY(-1px); box-shadow: 0 6px 14px rgba(20, 20, 15, 0.16); }
.ad-btn--primary:active { transform: translateY(0); box-shadow: none; }
.ad-btn--outline { background: transparent; color: var(--ink); border: 1px solid rgba(20, 20, 15, 0.3); }
.ad-btn--outline:hover { border-color: var(--ink); background: var(--tint-05); }
.ad-btn--outline:disabled, .ad-btn--primary:disabled { opacity: 0.45; cursor: default; transform: none; box-shadow: none; }

/* ---- scripted run (replay) ---- */
.ad-agent__runwrap { margin-top: auto; padding-top: 7px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.ad-btn--xs { padding: 5px 10px; font-size: 10.5px; }
.ad-replaytag {
  font-family: var(--mono);
  font-size: 7.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faintest);
}

.ad-replay {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 40px 20px;
}
.ad-replay .ad-kicker { color: var(--faint); }
.ad-replay__rows { display: flex; flex-direction: column; gap: 16px; min-width: 300px; }
.ad-replay__row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--body);
  animation: ad-actin 360ms var(--ease);
}
.ad-replay__row--done { color: var(--ink); }
.ad-replay__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: ppr-pulse 1.1s ease-in-out infinite;
  flex: none;
}
.ad-replay__check { color: var(--ok); font-weight: 700; font-size: 12px; flex: none; width: 8px; }

/* pre-run teaser on the runnable agent pages */
.ad-prerun__meta {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  text-align: center;
}
.ad-prerun__line { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--body); text-align: center; max-width: 44ch; }
.ad-replay .ad-replaytag { margin-top: -14px; }

.ad-result--in { animation: ad-resultin 480ms var(--ease); }
@keyframes ad-resultin {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

/* ---- approvals view ---- */
.ad-q { position: relative; }
.ad-qitem {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 16px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--hair-mid);
  border-radius: 3px;
  padding: 13px 15px;
  margin-bottom: 10px;
  transition: border-color 260ms var(--ease), opacity 320ms var(--ease), transform 320ms var(--ease), max-height 320ms var(--ease), margin 320ms var(--ease), padding 320ms var(--ease);
  max-height: 560px;
  overflow: hidden;
}
.ad-qitem__title { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.005em; }
.ad-qitem__meta {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}
.ad-qitem__meta .hot { color: var(--err); }
.ad-qitem__snippet {
  margin-top: 6px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--body);
  max-width: 62ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ad-qitem__actions { display: inline-flex; align-items: center; gap: 10px; }
.ad-open {
  background: none;
  border: none;
  padding: 4px 2px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--body);
  cursor: pointer;
  border-bottom: 1px solid transparent;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.ad-open:hover { color: var(--ink); border-bottom-color: var(--ink); }

/* approve animation states */
.ad-qitem--approved { border-color: rgba(30, 122, 74, 0.55); }
.ad-qitem--approved .ad-btn--primary { background: var(--ok); }
.ad-qitem--leaving {
  opacity: 0;
  transform: translateX(14px);
  max-height: 0;
  margin-bottom: 0;
  padding-top: 0;
  padding-bottom: 0;
  border-color: transparent;
}

.ad-empty {
  border: 1px dashed rgba(20, 20, 15, 0.25);
  border-radius: 3px;
  padding: 22px 18px;
  text-align: center;
  margin-bottom: 10px;
}
.ad-empty--done { padding: 30px 18px 28px; }
.ad-empty__title { font-family: var(--serif); font-size: 16px; font-weight: 600; color: var(--ink); }
.ad-empty--done .ad-empty__title { font-size: 19px; }
.ad-empty__sub { margin-top: 5px; font-size: 12px; color: var(--body); }
.ad-empty__cta { display: inline-block; margin-top: 14px; text-decoration: none; }

/* the full drafted work product, expandable per queue item */
.ad-qitem__snippet[data-action] { cursor: pointer; }
.ad-qitem__snippet[data-action]:hover { color: var(--ink); }
.ad-draft {
  grid-column: 1 / -1;
  display: none;
  border-top: 1px solid var(--hair);
  padding: 12px 2px 2px;
}
.ad-draft.is-open { display: block; animation: ad-actin 260ms var(--ease); }
.ad-draft__head {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--faint);
  padding: 9px 12px;
  background: rgba(20, 20, 15, 0.03);
  border-radius: 2px;
  margin-bottom: 10px;
}
.ad-draft__p { margin: 0 0 8px; font-size: 12.5px; line-height: 1.6; color: var(--body); max-width: 66ch; }
.ad-draft__p:last-child { margin-bottom: 0; }
.ad-draft__p b { color: var(--ink); }

/* nudge banner on the review result while the note awaits sign-off */
.ad-alertbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(168, 105, 10, 0.25);
  background: rgba(168, 105, 10, 0.07);
  color: var(--warn);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
  padding: 10px 18px;
  cursor: pointer;
  transition: background 200ms var(--ease);
}
.ad-alertbar:hover { background: rgba(168, 105, 10, 0.12); }
.ad-alertbar .ppr-ar { display: inline-block; transition: transform 240ms var(--ease); }
.ad-alertbar:hover .ppr-ar { transform: translateX(4px); }

/* approvals badge pulses when a fresh result lands */
.ad-badge--pulse { animation: ad-badgepulse 1.8s ease-in-out infinite; }
@keyframes ad-badgepulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(168, 105, 10, 0.55); }
  50% { transform: scale(1.14); }
  75% { box-shadow: 0 0 0 6px rgba(168, 105, 10, 0); }
}

/* activity feed */
.ad-actlist { list-style: none; margin: 0; padding: 0; }
.ad-act {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 14px;
  border-top: 1px solid var(--hair);
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--body);
}
.ad-actlist > .ad-act:first-child { border-top: none; }
.ad-act__time { font-family: var(--mono); font-size: 9.5px; color: var(--faint); white-space: nowrap; }
.ad-act b { color: var(--ink); font-weight: 600; }
.ad-act--new { animation: ad-actin 420ms var(--ease); }
.ad-act__check { color: var(--ok); font-weight: 700; margin-right: 4px; }
@keyframes ad-actin {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

/* ---- info bubbles ---- */
.ad-bubble {
  position: absolute;
  z-index: 30;
  width: 236px;
  background: var(--card);
  border: 1px solid var(--hair-em);
  border-radius: 3px;
  box-shadow: 0 14px 30px rgba(20, 20, 15, 0.16);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--body);
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
}
.ad-bubble.is-on { opacity: 1; transform: none; }
.ad-bubble b { color: var(--ink); }

.ad-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px; height: 13px;
  border: 1px solid var(--faintest);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 9px;
  line-height: 1;
  color: var(--faint);
  background: none;
  padding: 0;
  cursor: help;
  flex: none;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
.ad-info:hover { color: var(--ink); border-color: var(--ink); }

[data-bubble] { cursor: help; }
button.ad-stat[data-bubble], .ad-stat button { cursor: pointer; }
.ad-agent__status[data-bubble] { cursor: help; }
button.ad-clio { cursor: help; }
.ad-pwr-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: help;
  text-align: left;
}

/* ---- mobile (<900px): demo is desktop-only, show a notice ---- */
.ad-mobilenote {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 48px 24px;
  text-align: center;
}
.ad-mobilenote__kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); }
.ad-mobilenote__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
  animation: ppr-pulse 1.6s ease-in-out infinite;
}
.ad-mobilenote__title {
  margin: 0;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 20ch;
}
.ad-mobilenote__line { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--body); max-width: 34ch; }
.ad-mobilenote__line b { color: var(--ink); font-weight: 600; }

@media (max-width: 899px) {
  .ad-root { height: auto; min-height: 280px; }
}

/* soft reset fade */
.ad-root--fading .ad-app { opacity: 0.25; transition: opacity 200ms var(--ease); }
.ad-app { transition: opacity 200ms var(--ease); }

/* visually hidden (a11y) */
.ad-sr {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ad-view, .ad-qitem, .ad-act--new { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
