/* Proxy product demos: a 1280x720 "screen recording" built from real HTML.
   Shared by /embeds/bert-cms-demo/ (conversion page) and /embeds/portal-demo/
   (hosting page). Colors, type, radii and buttons mirror the Proxy Portal's
   dark theme (portal/src/app/globals.css) so the demo reads as the product. */

:root {
  --app: #0a0a0f;
  --surface: #111116;
  --raised: #1e1e23;
  --line: #23232b;
  --ink: #ffffff;
  --subtle: #a1a1aa;
  --muted: #71717a;
  --accent: #4f29ff;
  --teal: #3fe7e0;
  --pink: #f950bb;
  --grn: #00c46a;
  --amber: #f59e0b;
  --sans: 'DM Sans', ui-sans-serif, system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  /* Pied Piper's site */
  --pp-deep: #04352a;
  --pp-dark: #047863;
  --pp-mint: #3fd396;
  --pp-dek: #a7d3bf;
  --pp-display: 'Satoshi', 'DM Sans', system-ui, sans-serif;
  --pp-body: 'Inter', 'DM Sans', system-ui, sans-serif;
}

html,
body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--app);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
#stage {
  position: absolute;
  left: 0;
  top: 0;
  width: 1280px;
  height: 720px;
  transform-origin: 0 0;
  overflow: hidden;
  background: var(--app);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
#stage * {
  box-sizing: border-box;
}
svg.i {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}
.mono {
  font-family: var(--mono);
}
.muted {
  color: var(--muted);
}
.tl {
  color: var(--teal);
  font-weight: 600;
}
.g {
  color: var(--grn);
}

/* ---------- browser chrome ---------- */
.chrome {
  position: absolute;
  inset: 0 0 auto 0;
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: #141419;
  border-bottom: 1px solid var(--line);
  z-index: 6;
}
.chrome > i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #34343e;
}
.url {
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 5px 16px;
  border-radius: 4px;
  background: #0b0b10;
  border: 1px solid var(--line);
  color: var(--subtle);
  font: 12px var(--mono);
  white-space: nowrap;
}
.url svg.i {
  width: 12px;
  height: 12px;
  color: var(--grn);
}

/* ---------- buttons, pills, cards ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  background: var(--raised);
  color: var(--ink);
  white-space: nowrap;
}
.btn.cta {
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal);
}
.btn.cta.hot {
  background: color-mix(in srgb, var(--teal) 26%, transparent);
}
.btn.line {
  background: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--subtle);
  padding: 6px 12px;
}
.ib {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: var(--muted);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 999px;
  font: 600 11.5px var(--sans);
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal);
  white-space: nowrap;
}
.pill.grn {
  background: rgba(0, 196, 106, 0.14);
  color: #34e08f;
}
.pill.amber {
  background: rgba(245, 158, 11, 0.14);
  color: #fbbf24;
}
.pill.pink {
  background: rgba(249, 80, 187, 0.14);
  color: #ff7fd0;
}
.pill.gray {
  background: var(--raised);
  color: var(--subtle);
}
.inc {
  padding: 2px 8px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 15%, transparent);
  color: var(--teal);
  font: 700 10px var(--sans);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--grn);
  flex: 0 0 auto;
}
.dot.glow {
  width: 10px;
  height: 10px;
  box-shadow: 0 0 6px #00c46a;
}
.card {
  background: var(--surface);
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 260px;
  padding: 8px 12px;
  border-radius: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.search svg.i {
  width: 15px;
  height: 15px;
}

/* ---------- portal shell ---------- */
.app {
  position: absolute;
  inset: 38px 0 0 0;
  display: flex;
}
.side {
  width: 256px;
  flex: 0 0 256px;
  background: rgba(17, 17, 22, 0.6);
  border-right: 1px solid var(--line);
  padding: 0 8px 32px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand {
  height: 56px;
  display: flex;
  align-items: center;
  padding: 0 10px;
}
.brand img {
  height: 20px;
  width: auto;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}
.top .row {
  flex: 1;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 4px;
  color: var(--subtle);
  font-size: 14.1px;
  transition:
    color 0.2s,
    background 0.2s;
}
.row.on {
  color: var(--teal);
  font-weight: 600;
}
.row.hov {
  background: var(--raised);
  color: var(--ink);
}
.row .lb {
  flex: 1;
}
.row .chev {
  width: 14px;
  height: 14px;
  stroke-width: 1.7;
  transition: transform 0.25s;
}
.row.open .chev {
  transform: rotate(90deg);
}
.kids {
  margin: 2px 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  height: 0;
}
.kids span {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.kids span.on {
  color: var(--teal);
  font-weight: 500;
}
.kids span.hov {
  color: var(--ink);
}
.col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 56px;
  flex: 0 0 56px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 24px;
}
.ava {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 11.5px var(--sans);
  color: #fff;
  background: linear-gradient(135deg, #4f29ff, #f950bb);
  flex: 0 0 auto;
}
.main {
  position: relative;
  flex: 1;
  overflow: hidden;
}
.screen {
  position: absolute;
  inset: 0;
  padding: 26px 24px 0;
  opacity: 0;
  visibility: hidden;
}
.screen.on {
  opacity: 1;
  visibility: visible;
}
.ph {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.ph h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.3;
}
.ph p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
}
.h1row {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* inbox */
.nrow {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  transition: background 0.3s;
}
.nrow:first-child {
  border-top: 0;
}
.nrow.un {
  background: rgba(249, 80, 187, 0.05);
}
.pd {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  flex: 0 0 auto;
}
.nrow.un .pd,
.tr.un .pd {
  background: var(--pink);
}
.nb {
  flex: 1;
  min-width: 0;
}
.n1 {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.n1 .nt {
  font-size: 14px;
  color: var(--subtle);
}
.nrow.un .nt {
  color: var(--ink);
  font-weight: 600;
}
.n1 .tm {
  color: var(--muted);
  font-size: 12px;
  flex: 0 0 auto;
}
.nb p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.acts {
  display: flex;
  align-items: center;
  gap: 2px;
}
.acts .ib {
  font-size: 15px;
}
.fine {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 12px;
}

/* donut ring (portal Donut.tsx: 34px, 2.5px ring, teal arc, value inside) */
.donut {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.donut svg {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.donut circle {
  fill: none;
  stroke-width: 2.5;
}
.donut .trk {
  stroke: var(--raised);
}
.donut .arc {
  stroke: var(--teal);
  stroke-linecap: round;
}
.donut b {
  position: relative;
  font-size: 10px;
  font-weight: 600;
}
.ctr {
  display: grid;
  place-items: center;
}
.sdot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: -1px;
  background: var(--grn);
}
.sdot.off {
  background: var(--muted);
}
.spill {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(0, 196, 106, 0.15);
  color: var(--grn);
}
.spill.off {
  background: var(--raised);
  color: var(--muted);
}
.tile4 small.up {
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* tables */
.tbl .tr {
  display: grid;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  white-space: nowrap;
}
.tbl .tr > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tbl .th {
  border-top: 0;
  background: var(--raised);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.tbl .tr.flash {
  background: rgba(63, 231, 224, 0.08);
}
.tbl .tr.hov {
  background: rgba(30, 30, 35, 0.4);
}
.tr .r {
  text-align: right;
}
.who b {
  display: block;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}
.who small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.msg b {
  font-weight: 600;
  margin-right: 6px;
}
.msg {
  color: var(--subtle);
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.tile4 {
  padding: 14px 16px;
}
.tile4 small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.tile4 b {
  display: block;
  margin-top: 4px;
  font-size: 22px;
  font-weight: 600;
}
.tile4 b em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: #34e08f;
  margin-left: 6px;
}
.filters {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.filters span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 13px;
  color: var(--subtle);
  background: var(--surface);
}
.filters span.on {
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal);
  font-weight: 600;
}

/* sequence steps: a dropdown that opens right under the clicked sequence */
.tr-drop {
  height: 0;
  overflow: hidden;
  background: rgba(63, 231, 224, 0.03);
}
.drop-in {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--line);
}
.tbl .tr.open {
  background: rgba(63, 231, 224, 0.06);
}
.seq-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.seq-head b {
  font-size: 15px;
}
.from {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--subtle);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.stp {
  padding: 12px 14px;
  border-radius: 4px;
  background: #0d0d12;
  border: 1px solid var(--line);
}
.stp .day {
  font: 600 11px var(--mono);
  letter-spacing: 0.08em;
  color: var(--teal);
  text-transform: uppercase;
}
.stp b {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
}
.stp small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

/* builds: the real SiteCard (thumbnail on top, then name, status, domain, plan) */
.cards3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.sitecard {
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  transition: border-color 0.2s;
}
.sitecard.hov {
  border-color: color-mix(in srgb, var(--teal) 40%, transparent);
}
.sitecard .shot {
  height: 176px;
  background: var(--raised);
}
.sitecard .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sitecard .sb {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
}
.sitecard .r1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sitecard .nm {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
}
.sitecard .nm img {
  width: 18px;
  height: 18px;
  border-radius: 2px;
}
.sitecard .st8 {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(0, 196, 106, 0.15);
  color: var(--grn);
}
.sitecard .dm {
  color: var(--teal);
  font-size: 12px;
}
.sitecard .pl2 {
  font-size: 12px;
  color: var(--subtle);
}
.sitecard .pl2 span {
  color: var(--muted);
}
.sitecard .r3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}
.sitecard .r3 .ava {
  width: 22px;
  height: 22px;
  font-size: 9px;
}
.chip2 {
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  margin-right: 4px;
  background: rgba(255, 93, 1, 0.16);
  color: #ff8a4c;
}
.chip2.tw {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}
/* the build's live URL: teal, with the glowing "Site active" dot */
.lnk {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
}
.dh {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dh h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}
.dh .acts {
  gap: 8px;
}
.tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
}
.tabs span {
  padding: 9px 14px;
  font-size: 14px;
  color: var(--subtle);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    color 0.2s,
    border-color 0.2s;
}
.tabs span.on {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--teal);
}
.tabs span.hov {
  color: var(--ink);
}
.pane {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  left: 24px;
  right: 24px;
}
.pane.on {
  opacity: 1;
  visibility: visible;
}
.strip {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--subtle);
}
.strip i {
  font-style: normal;
  color: var(--muted);
}
.tech {
  font-style: normal;
  padding: 2px 6px;
  border-radius: 2px;
  margin-left: 4px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 93, 1, 0.16);
  color: #ff8a4c;
}
.tech.tw {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
}
.hgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.hcard {
  padding: 18px 20px;
}
.lab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.seg {
  display: flex;
  padding: 2px;
  border-radius: 999px;
  background: var(--raised);
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
}
.seg span {
  padding: 2px 9px;
  border-radius: 999px;
}
.seg span.on {
  background: var(--surface);
  color: var(--ink);
}
.score {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 12px 0 10px;
}
.score b {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.score small {
  color: var(--muted);
  font-size: 13px;
}
.bar {
  height: 6px;
  border-radius: 999px;
  background: var(--raised);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--c, var(--teal));
}
.ml {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12.5px;
}
.ml li {
  display: flex;
  justify-content: space-between;
  color: var(--subtle);
}
.ml b {
  color: var(--ink);
  font-weight: 600;
}
.ml b.g {
  color: var(--grn);
}
.plan {
  margin-top: 12px;
  font-size: 24px;
  font-weight: 700;
}
.pl {
  list-style: none;
  margin: 12px 0 14px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  color: var(--subtle);
}
.pl li span {
  color: var(--grn);
  margin-right: 6px;
}
.chart {
  padding: 18px 20px 12px;
}
.chart .lab {
  margin-bottom: 8px;
}
.chart svg {
  display: block;
  width: 100%;
  height: 230px;
}
.chart .plot {
  display: grid;
  grid-template-columns: 36px 1fr;
}
.chart .yax {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 230px;
  padding: 2px 6px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: right;
}
.chart .ln {
  fill: none;
  stroke: #4f29ff;
  stroke-width: 2;
}
.chart .ar {
  fill: url(#fillP);
}
.chart .gl {
  stroke: var(--line);
  stroke-width: 1;
}
.chart .avg {
  stroke: var(--muted);
  stroke-width: 1;
  stroke-dasharray: 4 4;
}
.chart .avgl {
  position: absolute;
  right: 6px;
  color: var(--muted);
  font-size: 11px;
}
.chart .pw {
  position: relative;
}
.chart .ax {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  padding: 6px 0 0 36px;
}

/* ---------- BERT CMS editor ---------- */
.editor {
  position: absolute;
  inset: 38px 0 0 0;
  display: grid;
  grid-template-columns: 1fr 384px;
  grid-template-rows: 48px 1fr;
  background: var(--app);
  z-index: 4;
}
.editor.later {
  opacity: 0;
  visibility: hidden;
}
.etb {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 12px;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 12px;
}
.etb-logo {
  height: 24px;
  width: auto;
  margin-right: 4px;
}
.etb-site {
  margin-right: 8px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
}
.tbtn {
  display: inline-grid;
  place-items: center;
  padding: 8px;
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
}
.tbtn.on {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.ti {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.etb-mid {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.be {
  display: flex;
  margin-right: 4px;
  padding: 2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 11px;
  font-weight: 600;
}
.be span {
  padding: 4px 8px;
  border-radius: 3px;
  color: rgba(255, 255, 255, 0.6);
}
.be span.on {
  background: #fff;
  color: #000;
}
.etb-discard,
.etb-save {
  margin-left: 4px;
  padding: 4px 6px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}
.etb-discard {
  display: none;
}
.etb-discard.show {
  display: inline;
}
.etb-launch {
  margin-left: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
  font-weight: 600;
  white-space: nowrap;
  transition:
    background 0.3s,
    color 0.3s,
    border-radius 0.3s;
}
.etb-launch.ready {
  border-radius: 999px;
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal);
}
.etb-launch.busy {
  color: rgba(255, 255, 255, 0.7);
}
.etb-launch .spin {
  width: 14px;
  height: 14px;
  border-color: rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}
.ecanvas {
  position: relative;
  overflow: hidden;
  background: #15151b;
  padding: 16px;
}
.site {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
  background: var(--pp-deep);
  font-family: var(--pp-body);
}
.pp-page {
  position: absolute;
  inset: 0;
}
.pp-nav {
  height: 50px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
  white-space: nowrap;
  background: #000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12.5px;
  color: #cfd8d3;
}
.pp-logo {
  flex: none;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 12px;
  color: #fff;
  font: 700 16px var(--pp-display);
  letter-spacing: -0.03em;
}
.pp-logo img {
  width: 20px;
  height: 20px;
}
.pp-home .cs {
  opacity: 0;
}
.pp-nav .cs.on {
  color: var(--pp-mint);
}
.pp-nav .r {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.pp-nav .go {
  padding: 7px 14px;
  border-radius: 999px;
  background: #22b573;
  color: #fff;
  font-weight: 600;
}
.pp-hero {
  position: absolute;
  inset: 50px 0 0 0;
  padding: 40px 38px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 30px;
  align-items: center;
  background: radial-gradient(90% 140% at 100% 0%, #0a4634 0%, transparent 55%), var(--pp-deep);
}
.pp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 11px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pp-mint);
}
.pp-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--pp-mint);
}
.pp-title {
  margin: 16px 0 0;
  font: 500 36px/1.08 var(--pp-display);
  letter-spacing: -0.03em;
  color: #fff;
}
.pp-dek {
  margin: 16px 0 0;
  max-width: 36ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--pp-dek);
}
.pp-dek code {
  font: 12px var(--mono);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}
.pp-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 22px;
  font-size: 13px;
}
.pp-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--pp-deep);
  font-weight: 700;
  transition:
    background 0.5s,
    color 0.5s;
}
.pp-btn.new {
  background: #0fb27a;
  color: #fff;
}
.pp-btn .arr {
  display: none;
}
.pp-btn.new .arr {
  display: inline;
}
.pp-link {
  color: #fff;
  font-weight: 600;
}
.term {
  border-radius: 14px;
  border: 1px solid #0b4636;
  background: #062a20;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
  font: 10.5px/1.95 var(--mono);
  color: #9fd8bf;
  white-space: nowrap;
  overflow: hidden;
}
.term .th {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid #0b4636;
  color: #5d9c82;
}
.term .th i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1d5a46;
}
.term .th span {
  margin-left: 6px;
}
.term .tb {
  padding: 12px 16px 16px;
}
.term .ok {
  color: var(--pp-mint);
}
.term .w {
  color: #fff;
}
.term .dim {
  color: #5d9c82;
}
.term .blk {
  display: inline-block;
  width: 7px;
  height: 13px;
  vertical-align: -2px;
  background: var(--pp-mint);
  animation: blink 1s steps(1) infinite;
}

/* the hero redesign BERT makes in the portal demo: centred, gridded, stats row */
.pp-hero2 {
  position: absolute;
  inset: 50px 0 0 0;
  padding: 52px 60px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(55% 70% at 50% 0%, rgba(63, 211, 150, 0.2), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
    #03261d;
}
.h2-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(63, 211, 150, 0.35);
  background: rgba(63, 211, 150, 0.08);
  font: 500 10.5px var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pp-mint);
}
.h2-pill i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pp-mint);
  box-shadow: 0 0 8px var(--pp-mint);
}
.h2-title {
  margin: 20px 0 0;
  max-width: 15ch;
  font: 500 46px/1.04 var(--pp-display);
  letter-spacing: -0.035em;
  color: #fff;
}
.h2-dek {
  margin: 18px 0 0;
  max-width: 48ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--pp-dek);
}
.h2-dek code {
  font: 12px var(--mono);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 5px;
  border-radius: 3px;
}
.h2-cta {
  justify-content: center;
}
.h2-stats {
  display: flex;
  gap: 12px;
  margin-top: 34px;
}
.h2-stats span {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(4, 53, 42, 0.6);
  font-size: 12px;
  color: var(--pp-dek);
}
.h2-stats b {
  font: 600 16px var(--mono);
  color: #fff;
}

/* the case-study page BERT builds: dark mode, Pied Piper greens */
.pp-case {
  opacity: 0;
  background: #031d16;
}
.case-body {
  position: absolute;
  inset: 50px 0 0 0;
  padding: 28px 36px;
  color: #e6f4ee;
}
.crumb {
  font: 600 10.5px var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pp-mint);
}
.co {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.co .tile {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: #0a4634;
  color: var(--pp-mint);
  font: 700 14px var(--pp-display);
}
.co b {
  font: 700 16px var(--pp-display);
  color: #fff;
}
.co small {
  display: block;
  color: #8fbfab;
  font-size: 11.5px;
}
.case-h {
  margin: 16px 0 0;
  max-width: 24ch;
  min-height: 1.12em;
  font: 500 30px/1.12 var(--pp-display);
  letter-spacing: -0.025em;
  color: #fff;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 22px;
}
.stat {
  padding: 14px 16px;
  border-radius: 10px;
  background: #062a20;
  border: 1px solid #0b4636;
  color: #fff;
}
.stat b {
  display: block;
  font: 500 24px var(--pp-display);
  letter-spacing: -0.02em;
}
.stat small {
  color: var(--pp-dek);
  font-size: 11.5px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 22px;
}
.cols h4 {
  margin: 0 0 6px;
  font: 600 10.5px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pp-mint);
}
.cols p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--pp-dek);
}
.bars {
  margin-top: 22px;
  padding: 14px 16px 16px;
  border-radius: 10px;
  background: #062a20;
  border: 1px solid #0b4636;
}
.bars h4 {
  margin: 0 0 4px;
  font: 600 10.5px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pp-mint);
}
.brow {
  display: grid;
  grid-template-columns: 52px 1fr 70px;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--pp-dek);
}
.brow i {
  transform-origin: left center;
  display: block;
  height: 10px;
  min-width: 6px;
  border-radius: 999px;
  background: #2c6e57;
}
.brow i.a {
  background: var(--pp-mint);
}
.brow b {
  font: 600 12px var(--mono);
  color: #fff;
  text-align: right;
}
/* BERT panel */
.bert {
  grid-row: 2;
  grid-column: 2;
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-left: 1px solid var(--line);
  background: #0e0e13;
}
.bh {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}
.bot {
  width: 30px;
  height: 30px;
  flex: none;
}
.bert-face {
  display: block;
  width: 30px;
  height: 30px;
  fill: currentColor;
  color: #3fe7e0;
  filter: drop-shadow(0 0 1.5px rgba(63, 231, 224, 0.35));
  transition:
    color 0.3s,
    filter 0.3s;
}
.bert-face .w {
  display: none;
}
.bert-face.working .n {
  display: none;
}
.bert-face.working .w {
  display: inline;
}
/* speaking: a steady, brighter glow (TerminalBot .bert-on) */
.bert-face.working {
  color: #7ef7f1;
  filter: drop-shadow(0 0 4px rgba(63, 231, 224, 0.9));
}
.bh b {
  display: block;
  font-size: 14px;
}
.bh small {
  color: var(--muted);
  font-size: 11.5px;
}
.bh .on {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--subtle);
  font-size: 11.5px;
}
.msgs {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 16px;
}
.m {
  max-width: 90%;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--raised);
  font-size: 13px;
  line-height: 1.5;
  flex: 0 0 auto;
}
.m.you {
  align-self: flex-end;
  background: rgba(79, 41, 255, 0.22);
  border: 1px solid rgba(79, 41, 255, 0.5);
}
.st {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font: 11.5px var(--mono);
  color: var(--subtle);
}
.st svg.i {
  width: 14px;
  height: 14px;
  color: var(--grn);
}
.st .spin {
  width: 12px;
  height: 12px;
  margin: 0 1px;
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: var(--amber);
}
.dots3 {
  display: inline-flex;
  gap: 4px;
  padding: 3px 0;
}
.dots3 i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--subtle);
  animation: d3 1s infinite ease-in-out;
}
.dots3 i:nth-child(2) {
  animation-delay: 0.15s;
}
.dots3 i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes d3 {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
  }
}
.notes {
  border-top: 1px solid var(--line);
  padding: 12px 16px 4px;
}
.notes:empty {
  display: none;
}
.nt {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 9px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--subtle);
}
.nt b {
  color: var(--ink);
  font-weight: 600;
}
.num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--teal);
  color: #061016;
  font: 700 10.5px var(--mono);
  transition: background 0.3s;
}
.num.done {
  background: var(--grn);
}
.ask {
  margin: 0 16px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 12px;
  border-radius: 8px;
  background: var(--raised);
  font-size: 13px;
  min-height: 46px;
}
.ask .t {
  flex: 1;
  color: var(--ink);
  line-height: 1.4;
}
.ask .t:empty::before {
  content: 'Ask BERT…';
  color: var(--muted);
}
.send {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--teal);
  color: #061016;
  flex: 0 0 auto;
}
.send svg.i {
  width: 14px;
  height: 14px;
}

/* overlays on the canvas: hover outline, selection, pins, note composer */
.ov {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 8;
  font-family: var(--sans);
}
.hl {
  position: absolute;
  border: 1.5px dashed var(--teal);
  border-radius: 5px;
}
.hl.sel {
  border-style: solid;
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(63, 231, 224, 0.16);
}
.hl .tag {
  position: absolute;
  left: -2px;
  top: -22px;
  padding: 2px 7px;
  border-radius: 3px;
  background: var(--teal);
  color: #061016;
  font: 700 10px var(--mono);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.hl .num {
  position: absolute;
  right: -11px;
  top: -11px;
}
.composer {
  position: absolute;
  width: 292px;
  padding: 11px 12px 12px;
  border-radius: 8px;
  background: #121218;
  border: 1px solid var(--teal);
  box-shadow: 0 22px 44px -14px rgba(0, 0, 0, 0.75);
  font-size: 13px;
  color: var(--ink);
}
.composer .ch {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--teal);
  font: 700 10px var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.composer .ta {
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 4px;
  background: var(--raised);
  line-height: 1.45;
}
.composer .cf {
  display: flex;
  justify-content: flex-end;
  margin-top: 9px;
}
.composer .btn {
  padding: 6px 13px;
  font-size: 12.5px;
}
.scan {
  position: absolute;
  overflow: hidden;
  border-radius: 6px;
}
.scan i {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 35%;
  background: linear-gradient(90deg, transparent, rgba(63, 231, 224, 0.32), transparent);
}
.scr {
  opacity: 0.55;
}
.gh {
  color: transparent;
}

/* the portal's launch overlay (SiteEditCanvas): building, then live */
.lo {
  position: absolute;
  inset: 0;
  z-index: 12;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
}
.lo-card {
  width: 440px;
  padding: 28px;
  border-radius: 8px;
  background: #0e0e12;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  text-align: center;
  color: #fff;
}
.lo-ic {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
}
.lo-ic.live {
  border-radius: 50%;
  background: color-mix(in srgb, #3fe7e0 15%, transparent);
  color: #3fe7e0;
}
.lo-ic.live svg.i {
  width: 22px;
  height: 22px;
  stroke-width: 2.5;
}
.lo-spin {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #3fe7e0;
  animation: sp 0.8s linear infinite;
}
.lo-t {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.lo-m {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.7);
}
.lo-items {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  text-align: left;
}
.lo-items li {
  padding: 8px 12px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}
.lo-items p {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}
.lo-items .lo-st {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 11px;
  font-weight: 400;
  color: #3fe7e0;
}
.lo-items .lo-st.live {
  color: #6ee7b7;
}
.lo-mini {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(63, 231, 224, 0.3);
  border-top-color: #3fe7e0;
  animation: sp 0.8s linear infinite;
}
.lo-btns {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.lo-b {
  padding: 8px 16px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 14px;
  font-weight: 600;
}
.lo-b.cta {
  border-radius: 999px;
  background: color-mix(in srgb, #3fe7e0 14%, transparent);
  color: #3fe7e0;
}
.spin {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--teal) 30%, transparent);
  border-top-color: var(--teal);
  animation: sp 0.8s linear infinite;
}
@keyframes sp {
  to {
    transform: rotate(360deg);
  }
}

/* typing caret */
.typing::after {
  content: '';
  display: inline-block;
  width: 1.5px;
  height: 1.05em;
  margin-left: 2px;
  vertical-align: -2px;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* cursor + click ripple */
.cursor {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  margin: -3px 0 0 -4px;
  transform-origin: 4px 3px;
  z-index: 20;
  pointer-events: none;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.55));
}
.ripple {
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  z-index: 19;
  pointer-events: none;
}

/* attachments in BERT's chat: the paperclip, the upload, the file chip */
.ask .clip {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.ask .clip svg.i {
  width: 16px;
  height: 16px;
}
.ask-files:empty {
  display: none;
}
.ask-files {
  margin: 0 16px 8px;
}
.fchip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--raised);
  border: 1px solid var(--line);
  overflow: hidden;
  font-size: 12px;
}
.fchip svg.i {
  width: 18px;
  height: 18px;
  color: var(--pink);
}
.fchip b {
  display: block;
  font-weight: 600;
}
.fchip small {
  display: block;
  color: var(--muted);
  font-size: 11px;
}
.fchip .up {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.fchip .up i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--teal);
}
.fchips {
  margin-bottom: 8px;
}
.m.you .fchip {
  background: rgba(10, 10, 15, 0.5);
}

/* the landing page BERT builds in the new hero design, with its form */
.pp-landing {
  opacity: 0;
  background: #03261d;
}
.lp-hero {
  position: absolute;
  inset: 50px 0 0 0;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  padding: 0 44px;
  background:
    radial-gradient(55% 70% at 30% 0%, rgba(63, 211, 150, 0.2), transparent 70%),
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 40px 40px,
    #03261d;
}
.lp-title {
  margin: 18px 0 0;
  font: 500 40px/1.06 var(--pp-display);
  letter-spacing: -0.035em;
  color: #fff;
}
.lp-dek {
  margin: 16px 0 0;
  max-width: 40ch;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--pp-dek);
}
.lp-stats {
  margin-top: 26px;
}
.lp-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border-radius: 14px;
  background: rgba(4, 53, 42, 0.85);
  border: 1px solid rgba(63, 211, 150, 0.3);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
  opacity: 0;
  visibility: hidden;
}
.lp-fh {
  margin-bottom: 4px;
  font: 600 16px var(--pp-display);
  color: #fff;
}
.lp-f {
  display: block;
  padding: 11px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
}
.lp-f i {
  font-style: normal;
  color: rgba(167, 211, 191, 0.7);
}
.lp-sub {
  justify-content: center;
  margin-top: 4px;
}

/* contact page (ContactDetailView): activity feed left, details right */
.who2 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ava.lg {
  width: 44px;
  height: 44px;
  font-size: 14px;
  background: linear-gradient(135deg, #3fe7e0, #4f29ff);
}
.who2 h1 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
}
.who2 .muted {
  font-size: 13px;
}
.cgrid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  align-items: start;
}
.cact,
.cdet {
  padding: 20px;
}
.cside {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ch2 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
}
.kinds {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.kinds span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--raised);
  color: var(--subtle);
  font-size: 12px;
}
.kinds span.on {
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal);
  font-weight: 600;
}
.cin {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 8px 8px 12px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: #0d0d12;
  font-size: 13px;
}
.cin .t {
  flex: 1;
  line-height: 1.45;
}
.cin .t:empty::before {
  content: 'Log a note, call, email, meeting…';
  color: var(--muted);
}
.ctl {
  margin-top: 16px;
}
.ti2 {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}
.ti2 b {
  display: block;
  font-weight: 600;
}
.ti2 small {
  display: block;
  margin-top: 2px;
  color: var(--subtle);
  font-size: 12.5px;
  line-height: 1.5;
}
.ti2 > div {
  flex: 1;
}
.ti2 time {
  color: var(--muted);
  font-size: 11.5px;
}
.tdot {
  width: 22px;
  height: 22px;
  flex: none;
  border-radius: 50%;
  border: 2px solid var(--teal);
  background: color-mix(in srgb, var(--teal) 14%, transparent);
}
.tdot.pink {
  border-color: var(--pink);
  background: color-mix(in srgb, var(--pink) 14%, transparent);
}
.tdot.note {
  border-color: var(--subtle);
  background: var(--raised);
}
.tconn {
  height: 16px;
  margin-left: 10px;
  border-left: 1px dashed var(--line);
}
.dl {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
}
.dl span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dl b {
  font-weight: 500;
}

/* ---- 2026-10-20 (Devin's hosting-demo notes) ---- */

/* the layout-locked decode (decode {steady}): each character keeps its real
   glyph in place, invisible until it resolves, and the scramble glyph sits on
   top of it without taking any room, so lines never re-wrap mid-scramble */
.dc {
  position: relative;
}
.dc-k {
  color: transparent;
}
.dc.ok .dc-k {
  color: inherit;
  transition: color 0.18s ease-out;
}
.dc-g {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;
}
.dc.on .dc-g {
  opacity: 0.55;
}

/* contact activity: the timeline dots at about 20% of their old 22px size,
   centred on the first line of each entry; the dashed connector re-centres
   under them */
.tdot {
  width: 5px;
  height: 5px;
  margin-top: 7px;
  border: 0;
  background: var(--teal);
}
.tdot.pink {
  background: var(--pink);
}
.tdot.note {
  background: var(--subtle);
}
.tconn {
  margin-left: 2px;
}

/* inbox: the mark-read check lights up under the cursor */
.acts .ib.hov {
  background: var(--raised);
  color: var(--teal);
}

/* scheduler: a week calendar with bookings, and the booking's detail card */
.cal {
  padding: 0;
}
.cal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.cal-nav {
  display: flex;
  gap: 6px;
}
.cal-nav span {
  padding: 3px 10px;
  border-radius: 4px;
  background: var(--raised);
  color: var(--subtle);
  font-size: 12px;
}
.cal-head,
.cal-body {
  display: grid;
  grid-template-columns: 64px repeat(5, 1fr);
}
.cal-head span {
  padding: 8px 10px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.cal-head span:first-child {
  border-left: 0;
}
.cal-head b {
  color: var(--ink);
  font-weight: 600;
}
.cal-d.today b {
  color: var(--teal);
}
.cal-body {
  position: relative;
  grid-auto-rows: 48px;
  border-top: 1px solid var(--line);
}
.cal-body > span {
  border-left: 1px solid var(--line);
  border-bottom: 1px solid rgba(35, 35, 43, 0.6);
}
.cal-body > .cal-h {
  border-left: 0;
  padding: 4px 10px 0 0;
  text-align: right;
  color: var(--muted);
  font-size: 11px;
}
.cal-ev {
  position: absolute;
  left: calc(64px + (100% - 64px) / 5 * var(--d) + 4px);
  top: calc(48px * var(--t) + 2px);
  width: calc((100% - 64px) / 5 - 8px);
  height: calc(48px * var(--l) - 4px);
  padding: 4px 8px;
  border-radius: 4px;
  border-left: 3px solid var(--accent);
  background: rgba(79, 41, 255, 0.22);
  font-size: 11.5px;
  overflow: hidden;
}
.cal-ev b {
  display: block;
  font-weight: 600;
}
.cal-ev small {
  color: var(--subtle);
  font-size: 11px;
}
.cal-ev.muted {
  border-left-color: var(--muted);
  background: var(--raised);
}
.cal-ev.new {
  border-left-color: var(--teal);
  background: color-mix(in srgb, var(--teal) 18%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--teal) 45%, transparent);
}
.cal-ev.new.sel {
  box-shadow:
    0 0 0 2px var(--teal),
    0 0 18px rgba(63, 231, 224, 0.35);
}
.cal-pop {
  position: absolute;
  right: 40px;
  top: 200px;
  width: 280px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid color-mix(in srgb, var(--teal) 45%, transparent);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.8);
  opacity: 0;
  visibility: hidden;
}
.cal-pop .pill {
  align-self: flex-start;
}
.cal-pop b {
  font-size: 14px;
}
.cal-pop small {
  color: var(--subtle);
  font-size: 12px;
}
.cal-pop .btn {
  align-self: flex-start;
  margin-top: 6px;
}
