/* The rail (tonet-rail.js): its own look, the dashboard's, scoped under .tonet-rail / .tonet-rail-compact so it
 * sits on any tonet.ai page. White, inks and grays; orange for the brand and the button; red only for a warning;
 * the app's blue for information; dark green for good. One moving thing: the crossfade. */
.tonet-rail, .tonet-rail-compact {
  --tr-ink: #111927; --tr-ink2: #2f3746; --tr-body: #4d5761; --tr-muted: #6c737f; --tr-faint: #9da4ae;
  --tr-line: #e5e7eb; --tr-wash: #f8f9fa; --tr-wash2: #f3f4f6; --tr-night: #1c2536;
  --tr-orange: #f45f1f; --tr-orange-soft: #fef4ef; --tr-orange-line: #faba9d; --tr-orange-ink: #9e421b;
  --tr-good: #067647; --tr-good-soft: #ecfdf3; --tr-good-line: #abefc6;
  --tr-bad: #b42318; --tr-bad-soft: #fef3f2; --tr-bad-line: #fecdca;
  --tr-info: #1849a9; --tr-info-soft: #eff4ff; --tr-info-line: #c7d7fe;
  --tr-display: 'Plus Jakarta Sans', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --tr-ui: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-family: var(--tr-ui);
  color: var(--tr-ink);
  -webkit-font-smoothing: antialiased;
}
.tonet-rail *, .tonet-rail *::before, .tonet-rail *::after,
.tonet-rail-compact *, .tonet-rail-compact *::before, .tonet-rail-compact *::after { box-sizing: border-box; }
.tonet-rail p, .tonet-rail ul { margin: 0; padding: 0; }

/* Only for visitors, only where there is room. A page can move the line with its own rules. */
.tonet-rail { display: none; }
@media (min-width: 1280px) {
  .tonet-rail { display: block; }
  .tonet-rail-compact { display: none; }
}
html.tonet-signed .tonet-rail, html.tonet-signed .tonet-rail-compact, .tonet-rail[hidden], .tonet-rail-compact[hidden] { display: none !important; }

/* What sticks: the label, the card and its dots. The aside around it is the rail's column. */
.tonet-rail .tr-hold { position: sticky; top: var(--tonet-rail-top, 24px); width: 300px; max-width: 100%; }
.tonet-rail .tr-label-top { display: flex; align-items: center; gap: 8px; margin: 0 0 12px 2px; line-height: 16px; font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--tr-muted); }
.tonet-rail .tr-label-top::before { content: ''; width: 16px; height: 1.5px; background: var(--tr-orange); }

/* The column's two looks (round 2, Ali 11-19: "there needs to be clear separation of the banner from the page").
   is-ruled: a line the page's full height, the column white. is-panel: its own panel in tonet.ai's landing colors
   (home.hbs: --night #0B111B and --night2 #131B27, the .wall-glow orange #F45F1F blurred 90px at .55, the section
   glow rgba(244,95,31,.17), the blue-grey #2B3648 to #141C2A of its phone screens, --nightline #263244, --nightmuted
   #97A2B3), the white card floating on it. */
.tonet-rail.is-ruled { border-left: 1px solid #e4e7ec; }
.tonet-rail.is-panel { overflow: clip; background: radial-gradient(560px circle at 30% 10%, rgba(244, 95, 31, .17), transparent 70%), radial-gradient(640px circle at 85% 92%, #2b3648, transparent 70%), linear-gradient(180deg, #131b27, #0b111b 38%, #141c2a); }
.tonet-rail.is-panel .tr-hold { isolation: isolate; }
/* Two glows travel with the card: the landing's orange behind its top corner, its blue-grey (#2B3648) under it. */
.tonet-rail.is-panel .tr-hold::before, .tonet-rail.is-panel .tr-hold::after { content: ''; position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.tonet-rail.is-panel .tr-hold::before { left: -90%; top: -45%; width: 230%; height: 95%; background: radial-gradient(closest-side, #f45f1f, transparent); opacity: .55; }
.tonet-rail.is-panel .tr-hold::after { right: -80%; bottom: -40%; width: 220%; height: 80%; background: radial-gradient(closest-side, #2b3648, transparent); opacity: .9; }
.tonet-rail.is-panel .tr-label-top { color: #97a2b3; }
.tonet-rail.is-panel .tr-card { border-color: transparent; box-shadow: 0 24px 60px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.tonet-rail.is-panel .tr-dots i { background: #263244; }
.tonet-rail.is-panel .tr-dots i.is-on { background: var(--tr-orange); }

/* is-wash (v4, round 3, Ali 11-19: "maybe try the light orange for the side like this"): tonet.ai's own feature
   section (home.hbs .ss-sys): its wash #FBF4EE and glow rgba(244,95,31,.08), the frame's warm shadow
   0 30px 70px -28px rgba(158,66,27,.55) with its hairline rgba(17,25,39,.06) and 18px radius, the label in
   --orange-ink #9E421B, the off items in rgba(17,25,39,.05)'s family. No border: the card sits in the page's design. */
.tonet-rail.is-wash { background: radial-gradient(560px circle at 70% 10%, rgba(244, 95, 31, .08), transparent 70%), #fbf4ee; }
.tonet-rail.is-wash .tr-label-top { color: #9e421b; }
.tonet-rail.is-wash .tr-card { border: 0; border-radius: 18px; box-shadow: 0 30px 70px -28px rgba(158, 66, 27, .55), 0 0 0 1px rgba(17, 25, 39, .06); }
.tonet-rail.is-wash .tr-dots i { background: rgba(17, 25, 39, .12); }
.tonet-rail.is-wash .tr-dots i.is-on { background: var(--tr-orange); }
.tonet-rail-compact.is-wash a.tr-compact, .tonet-rail-compact.is-plate a.tr-compact { background: radial-gradient(420px circle at 80% 0%, rgba(244, 95, 31, .08), transparent 70%), #fbf4ee; color: var(--tr-ink); border: 0; box-shadow: 0 0 0 1px rgba(17, 25, 39, .04); }

/* is-plate (v5, round 4): v4's light orange as a rounded plate around the label, the card and its dots, beside the
   content instead of a strip at the window's edge. Same values: #FBF4EE and its glow, the warm shadow, 18px card. */
.tonet-rail.is-plate .tr-hold { width: 340px; padding: 18px 20px 16px; border-radius: 24px; background: radial-gradient(420px circle at 70% 0%, rgba(244, 95, 31, .08), transparent 70%), #fbf4ee; }
.tonet-rail.is-plate .tr-label-top { color: #9e421b; }
.tonet-rail.is-plate .tr-card { border: 0; border-radius: 18px; box-shadow: 0 30px 70px -28px rgba(158, 66, 27, .55), 0 0 0 1px rgba(17, 25, 39, .06); }
.tonet-rail.is-plate .tr-dots i { background: rgba(17, 25, 39, .12); }
.tonet-rail.is-plate .tr-dots i.is-on { background: var(--tr-orange); }

/* is-small (Ali 11-24: "make it a little smaller on tools and blog... i dont want to be intrusive"): the plate 280px
   wide instead of 340, a shorter picture, the words and button a step down. */
.tonet-rail.is-plate.is-small .tr-hold { width: 280px; padding: 14px 16px 12px; border-radius: 20px; }
.tonet-rail.is-small .tr-label-top { margin-bottom: 10px; font-size: 10px; }
.tonet-rail.is-small .tr-card { padding: 8px 8px 10px; border-radius: 16px; }
.tonet-rail.is-small .tr-pic { height: 196px; border-radius: 11px; }
.tonet-rail.is-small .tr-cap { padding: 10px 4px 0; }
.tonet-rail.is-small .tr-line { font-size: 15px; }
.tonet-rail.is-small .tr-sub { font-size: 12px; }
.tonet-rail.is-small .tr-frame.is-offer .tr-sub { font-size: 13px; }
.tonet-rail.is-small .tr-btn { min-height: 40px; border-radius: 10px; font-size: 14px; }
.tonet-rail.is-small .tr-offer { gap: 14px; padding: 16px 15px 14px; }
.tonet-rail.is-small .tr-big { font-size: 25px; }
.tonet-rail.is-small .tr-nums { gap: 6px; }
.tonet-rail.is-small .tr-nums span { padding: 7px 10px; }
.tonet-rail.is-small .tr-nums b { font-size: 13px; }
.tonet-rail.is-small .tr-dots { margin-top: 10px; }

/* is-middle (v5, round 4, Ali: the ad centred): the card waits in the middle of the window and stays there while the
   page scrolls; the page beside it stays top-aligned. Every card is the same height, so it never jumps. The script
   measures the plate (--tr-hold-h); one taller than the window, less 32px, stops sticking (is-tall) rather than be cut. */
.tonet-rail.is-middle .tr-hold { top: max(16px, calc((100vh - var(--tr-hold-h, 540px)) / 2)); }
.tonet-rail.is-middle.is-tall .tr-hold { position: static; }

/* The card: one link, so the picture and the button both open the sign-up. */
.tonet-rail .tr-card { display: block; padding: 10px 10px 12px; border: 1px solid var(--tr-line); border-radius: 20px; background: #fff; color: var(--tr-ink); text-decoration: none; box-shadow: 0 0 0 1px rgba(17, 25, 39, .02), 0 5px 22px rgba(17, 25, 39, .07); }
.tonet-rail .tr-card:hover .tr-btn { filter: brightness(.95); }
.tonet-rail .tr-card:focus-visible { outline: 2px solid var(--tr-orange); outline-offset: 3px; }
/* Every frame in the same grid cell: the card is as tall as its tallest frame, so nothing ever runs into the button. */
.tonet-rail .tr-stage { display: grid; }
.tonet-rail .tr-frame { grid-area: 1 / 1; padding-bottom: 10px; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s linear .45s; }
.tonet-rail .tr-frame.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease, visibility 0s; }
.tonet-rail .tr-pic { position: relative; height: 252px; border-radius: 14px; overflow: hidden; background: var(--tr-wash2); }
.tonet-rail .tr-cap { padding: 12px 6px 0; }
.tonet-rail .tr-line { font-family: var(--tr-display); font-size: 17px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.tonet-rail .tr-sub { margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--tr-body); }
.tonet-rail .tr-frame.is-offer .tr-sub { margin-top: 0; font-size: 14px; color: var(--tr-ink2); }
.tonet-rail .tr-btn, .tonet-rail-compact .tr-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; margin: 4px 0 0; padding: 0 18px; border-radius: 12px; background: var(--tr-orange); color: #fff; font-family: var(--tr-display); font-size: 15px; font-weight: 700; }
.tonet-rail .tr-dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.tonet-rail .tr-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--tr-line); }
.tonet-rail .tr-dots i.is-on { background: var(--tr-orange); }

/* Small pieces of the dashboard */
.tonet-rail .tr-av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--tr-wash2); border: 1px solid var(--tr-line); font-size: 8.5px; font-weight: 700; color: var(--tr-ink2); letter-spacing: 0; }
.tonet-rail .tr-av.is-ink { background: var(--tr-night); border-color: var(--tr-night); color: #fff; }
.tonet-rail .tr-av.is-phone i { width: 8px; height: 8px; border: 1.5px solid var(--tr-faint); border-radius: 2px 2px 2px 6px; }
.tonet-rail .tr-chip { flex: none; display: inline-flex; align-items: center; padding: 2px 7px; border: 1px solid var(--tr-line); border-radius: 999px; background: #fff; font-size: 9px; font-weight: 600; color: var(--tr-ink2); white-space: nowrap; }
.tonet-rail .tr-chip.is-good { background: var(--tr-good-soft); border-color: var(--tr-good-line); color: var(--tr-good); }
.tonet-rail .tr-chip.is-bad { background: var(--tr-bad-soft); border-color: var(--tr-bad-line); color: var(--tr-bad); }
.tonet-rail .tr-chip.is-info { background: var(--tr-info-soft); border-color: var(--tr-info-line); color: var(--tr-info); }
.tonet-rail .tr-who { min-width: 0; flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.tonet-rail .tr-who b { font-size: 10.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tonet-rail .tr-who small { font-size: 9px; color: var(--tr-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Calls */
.tonet-rail .tr-product { position: absolute; inset: 0; padding: 12px 0 0 12px; }
.tonet-rail .tr-app { display: flex; height: 100%; border-radius: 10px 0 0 0; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px rgba(17, 25, 39, .06), 0 8px 24px rgba(17, 25, 39, .1); }
.tonet-rail .tr-side { flex: none; width: 34px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding-top: 10px; background: var(--tr-night); }
.tonet-rail .tr-side .tr-logo { margin-bottom: 4px; line-height: 0; }
.tonet-rail .tr-side .tr-logo svg { display: block; width: 20px; height: auto; }
.tonet-rail .tr-side i { width: 14px; height: 14px; border-radius: 4px; background: rgba(255, 255, 255, .14); }
.tonet-rail .tr-side i.is-on { background: var(--tr-orange); }
.tonet-rail .tr-main { flex: 1; min-width: 0; padding: 10px 10px 0 12px; }
.tonet-rail .tr-h { font-family: var(--tr-display); font-size: 14px; font-weight: 700; }
.tonet-rail .tr-tabs { display: flex; gap: 12px; margin: 6px 0 4px; border-bottom: 1px solid var(--tr-line); font-size: 9.5px; font-weight: 600; color: var(--tr-muted); }
.tonet-rail .tr-tabs span { padding-bottom: 5px; }
.tonet-rail .tr-tabs .is-on { color: var(--tr-ink); box-shadow: inset 0 -2px 0 var(--tr-orange); }
.tonet-rail .tr-row { display: flex; align-items: center; gap: 7px; padding: 6px 0; border-bottom: 1px solid var(--tr-wash2); }
.tonet-rail .tr-time { flex: none; width: 24px; font-size: 9px; color: var(--tr-muted); font-variant-numeric: tabular-nums; }

/* After-call notes */
.tonet-rail .tr-sheet { position: absolute; left: 12px; right: 12px; top: 12px; bottom: -8px; padding: 12px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px rgba(17, 25, 39, .06), 0 8px 24px rgba(17, 25, 39, .1); }
.tonet-rail .tr-sheet-top { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; border-bottom: 1px solid var(--tr-wash2); }
.tonet-rail .tr-label { margin-top: 9px; font-size: 9px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--tr-muted); }
.tonet-rail .tr-spark { color: var(--tr-orange); }
.tonet-rail .tr-para { margin-top: 3px; font-size: 11px; line-height: 1.45; color: var(--tr-ink2); }
.tonet-rail .tr-steps { margin-top: 4px; list-style: none; display: grid; gap: 4px; font-size: 10.5px; color: var(--tr-ink2); }
.tonet-rail .tr-steps li { display: flex; gap: 6px; }
.tonet-rail .tr-steps li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 2px; border: 1.5px solid var(--tr-line); border-radius: 3px; }
.tonet-rail .tr-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }

/* Messages */
.tonet-rail .tr-list { flex: none; width: 104px; padding: 8px 6px; border-right: 1px solid var(--tr-line); background: var(--tr-wash); }
.tonet-rail .tr-seg { display: flex; gap: 2px; padding: 2px; margin-bottom: 6px; border-radius: 7px; background: var(--tr-wash2); font-size: 8.5px; font-weight: 600; color: var(--tr-muted); }
.tonet-rail .tr-seg span { flex: 1; padding: 3px 0; border-radius: 5px; text-align: center; }
.tonet-rail .tr-seg .is-on { background: #fff; color: var(--tr-ink); box-shadow: 0 1px 2px rgba(17, 25, 39, .08); }
.tonet-rail .tr-thread { display: flex; align-items: center; gap: 5px; padding: 5px 4px; border-radius: 8px; }
.tonet-rail .tr-thread.is-on { background: #fff; box-shadow: 0 0 0 1px var(--tr-line); }
.tonet-rail .tr-chat { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; padding: 9px 9px 0; }
.tonet-rail .tr-chat-top { display: flex; align-items: baseline; gap: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--tr-wash2); }
.tonet-rail .tr-chat-top b { font-size: 11px; }
.tonet-rail .tr-chat-top small { font-size: 9px; color: var(--tr-muted); }
.tonet-rail .tr-bub { max-width: 92%; padding: 6px 8px; border-radius: 10px; font-size: 10px; line-height: 1.35; }
.tonet-rail .tr-bub.is-them { align-self: flex-start; background: var(--tr-wash2); border-bottom-left-radius: 3px; }
.tonet-rail .tr-bub.is-us { align-self: flex-end; background: var(--tr-orange); color: #fff; border-bottom-right-radius: 3px; }
.tonet-rail .tr-note { display: flex; align-items: center; gap: 5px; margin-top: 2px; padding: 6px; border-radius: 8px; border: 1px dashed var(--tr-line); font-size: 9.5px; color: var(--tr-body); }
.tonet-rail .tr-note .tr-av { width: 18px; height: 18px; font-size: 8px; }

/* Offers: big type */
.tonet-rail .tr-offer { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 22px; padding: 22px 20px 20px; }
.tonet-rail .tr-offer.is-ink { background: var(--tr-ink); color: #fff; }
.tonet-rail .tr-offer.is-paper { background: #fff; border: 1px solid var(--tr-line); border-radius: 14px; }
.tonet-rail .tr-offer.is-soft { background: var(--tr-orange-soft); }
.tonet-rail .tr-big { font-family: var(--tr-display); font-size: 31px; font-weight: 800; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.tonet-rail .tr-big em { font-style: normal; color: var(--tr-orange); }
.tonet-rail .tr-offer.is-ink .tr-big em { font-size: 1.25em; }
.tonet-rail .tr-nums { display: grid; gap: 8px; }
.tonet-rail .tr-nums span { display: flex; align-items: center; justify-content: space-between; padding: 9px 12px; border: 1px solid var(--tr-line); border-radius: 12px; background: var(--tr-wash); }
.tonet-rail .tr-nums b { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tonet-rail .tr-nums small { font-size: 11px; font-weight: 600; color: var(--tr-muted); }
.tonet-rail .tr-coins { display: flex; flex-wrap: wrap; gap: 6px; }
.tonet-rail .tr-coins span { padding: 5px 10px; border: 1px solid var(--tr-orange-line); border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; color: var(--tr-ink2); }

/* People: a photo, with one piece of the dashboard over it */
.tonet-rail .tr-photo { position: absolute; inset: 0; }
.tonet-rail .tr-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tonet-rail .tr-float { position: absolute; padding: 9px 10px; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgba(17, 25, 39, .22), 0 0 0 1px rgba(17, 25, 39, .05); }
.tonet-rail .tr-ring { left: 10px; right: 46px; bottom: 10px; }
.tonet-rail .tr-ring-top { display: flex; align-items: center; gap: 7px; }
.tonet-rail .tr-ring-why { margin-top: 6px; font-size: 9.5px; color: var(--tr-body); }
.tonet-rail .tr-ring-go { display: flex; gap: 6px; margin-top: 7px; }
.tonet-rail .tr-pill { flex: 1; padding: 5px 0; border-radius: 8px; text-align: center; font-size: 10px; font-weight: 700; }
.tonet-rail .tr-pill.is-good { background: var(--tr-good); color: #fff; }
.tonet-rail .tr-pill.is-quiet { background: var(--tr-wash2); color: var(--tr-ink2); }
.tonet-rail .tr-team { left: 10px; bottom: 10px; display: flex; flex-direction: column; min-width: 150px; }
.tonet-rail .tr-team b, .tonet-rail .tr-help b { font-size: 11px; }
.tonet-rail .tr-team small, .tonet-rail .tr-help small { font-size: 9.5px; color: var(--tr-muted); }
.tonet-rail .tr-faces { display: flex; margin-top: 6px; }
.tonet-rail .tr-faces .tr-av + .tr-av { margin-left: -5px; }
.tonet-rail .tr-faces .tr-av { border: 2px solid #fff; }
.tonet-rail .tr-help { right: 10px; bottom: 10px; display: flex; flex-direction: column; }

/* Narrow screens: one card after the tool, the offer in big type */
.tonet-rail-compact { margin-top: 20px; }
.tonet-rail-compact .tr-compact { display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 16px; border-radius: 18px; text-decoration: none; }
.tonet-rail-compact .tr-compact.is-ink { background: var(--tr-ink); color: #fff; }
.tonet-rail-compact .tr-compact.is-soft { background: var(--tr-orange-soft); color: var(--tr-ink); }
.tonet-rail-compact .tr-compact.is-paper { background: #fff; color: var(--tr-ink); border: 1px solid var(--tr-line); }
.tonet-rail-compact .tr-compact-big { font-family: var(--tr-display); font-size: 27px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; text-wrap: balance; }
.tonet-rail-compact .tr-compact-big em { font-style: normal; color: var(--tr-orange); }
.tonet-rail-compact .tr-compact-sub { font-size: 14px; line-height: 1.45; opacity: .8; }
.tonet-rail-compact .tr-btn { margin-top: 8px; }

@media (prefers-reduced-motion: reduce) {
  .tonet-rail .tr-frame, .tonet-rail .tr-frame.is-on { transition: none; }
}
