/* TextPort time machine: see time-machine.js. The scene is laid out 1280px
   wide (800px high unless `height` says otherwise) and scaled to the element's width. */
.tm { position: relative; overflow: hidden; background: #05060f; outline: none; user-select: none; -webkit-user-select: none; }
.tm-scene { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; transform-origin: 0 0; }
.tm-bg { position: absolute; inset: 0; background: #05060f center 0 / cover no-repeat; }
.tm-bg::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 55% at 46% 108%, rgba(60,90,255,.22), transparent 70%),
              linear-gradient(to bottom, rgba(5,6,15,0) 55%, rgba(5,6,15,.55)); }
.tm-bare, .tm-bare .tm-bg { background: none; }
.tm-bare .tm-bg::after { content: none; }
.tm-stars, .tm-strip { position: absolute; left: 0; top: 0; width: 1280px; height: 800px; }
.tm-stars { pointer-events: none; }
.tm-strip { pointer-events: none; z-index: 2000; }
.tm-stage { position: absolute; inset: 0; perspective: 1100px; }
.tm-hit { position: absolute; z-index: 2200; cursor: pointer; touch-action: none; }
.tm-finger { width: 34px; height: 34px; margin: -14px 0 0 -12px; border-radius: 50%; background: rgba(255,255,255,.35);
  border: 2px solid rgba(255,255,255,.85); }
.tm:focus-visible { outline: 3px solid #5aa8ff; outline-offset: 3px; }
.tm-cursor { position: absolute; left: 0; top: 0; z-index: 2100; display: none; pointer-events: none; filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); }
.tm-pill { position: absolute; left: 50%; top: calc(100% - 44px); transform: translate(-50%, -50%); z-index: 2050; padding: 8px 18px; border-radius: 999px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: rgba(255,255,255,.75); font: 500 14px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, sans-serif; white-space: nowrap; }
.tm-pill b { color: #fff; font-weight: 600; }

/* --- The window --------------------------------------------------------------- */
.tm-win { position: absolute; overflow: hidden; background: #fff; transform-origin: 50% 0;
  backface-visibility: hidden; will-change: transform, opacity; }
.tm-dim { position: absolute; inset: 0; background: #0a0f2e; opacity: 0; pointer-events: none; }
.tm-bar, .tm-head { display: flex; align-items: center; }
.tm-body { padding: 4px 26px 0; }
.tm-inset .tm-body { padding-left: 46px; }  /* the app's gutter for the strip */
/* Live, the front window's transcript scrolls under its header (top set by the script). */
.tm-scroll { position: absolute; left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain;
  scrollbar-width: none; padding-bottom: 18px; }
.tm-scroll::-webkit-scrollbar { display: none; }
.tm-touch .tm-scroll { overflow: hidden; }  /* on touch screens the strip scrolls it; a swipe scrolls the page */
.tm-day { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; font-size: 12px; font-weight: 500; color: #6e6e73; }
.tm-day::before, .tm-day::after { content: ""; flex: 1; height: 1px; background: #e5e5ea; }
.tm-msg { display: flex; flex-direction: column; align-items: flex-start; margin-top: 10px; }
.tm-msg.tm-out { align-items: flex-end; }
.tm-time { font-size: 10.5px; color: #8e8e93; margin: 0 2px 4px; }
.tm-bub { max-width: 420px; padding: 8px 13px; font-size: 14px; line-height: 1.32; border-radius: 17px; background: #e9e9eb; color: #1d1d1f; }
.tm-out .tm-bub { color: #fff; }

.tm-mac .tm-win { border-radius: 14px; font-family: "SF Pro Text", "SF Pro", SFUI, -apple-system, BlinkMacSystemFont, Inter, sans-serif;
  box-shadow: 0 40px 90px -10px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.12), 0 0 0 .5px rgba(0,0,0,.4); }
.tm-mac .tm-bar { height: 38px; padding: 0 16px; gap: 8px; background: #fafafa; }
.tm-mac .tl { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.tm-mac .tl.r { background: #ff5f57; } .tm-mac .tl.y { background: #febc2e; } .tm-mac .tl.g { background: #28c840; }
.tm-mac .tm-app { margin-left: 16px; font-size: 13px; font-weight: 600; color: #3a3a3c; }
.tm-mac .tm-head { height: 70px; padding: 0 22px; gap: 12px; background: #f2f2f2; border-top: 1px solid #e3e3e3; border-bottom: 1px solid #e3e3e3; }
.tm-mac .tm-av { width: 44px; height: 44px; border-radius: 50%; }
.tm-who { display: flex; flex-direction: column; flex: 1; }
.tm-who b { font-size: 17px; font-weight: 600; color: #1d1d1f; }
.tm-who span { font-size: 12px; color: #6e6e73; margin-top: 2px; }
.tm-seg { display: flex; padding: 2px; border-radius: 9px; background: #e4e4e6; font-size: 12px; font-weight: 500; }
.tm-seg span { padding: 4px 14px; border-radius: 7px; color: #6e6e73; }
.tm-seg span.on { background: #fff; color: #1d1d1f; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.tm-mac .tm-out .tm-bub { background: #2b6ff5; }

.tm-windows .tm-win { border-radius: 8px; font-family: "Segoe UI", SegoeUI, "Segoe UI Variable", system-ui, Inter, sans-serif; background: #f9f9f9;
  box-shadow: 0 40px 90px -10px rgba(0,0,0,.65), 0 0 0 1px rgba(255,255,255,.14); }
.tm-windows .tm-bar { height: 32px; padding-left: 14px; gap: 10px; background: #f3f3f3; font-size: 12px; color: #1a1a1a; }
.tm-windows .tm-logo { width: 16px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, #5b7cff, #ff3d8b); }
.tm-windows .tm-caps { margin-left: auto; display: flex; font-family: "Segoe Fluent Icons", "Segoe MDL2 Assets", SegoeIcons; font-size: 10px; }
.tm-windows .tm-caps i { font-style: normal; width: 46px; text-align: center; }
.tm-windows .tm-caps svg { display: inline-block; vertical-align: middle; }
.tm-windows .tm-av { width: 40px; height: 40px; border-radius: 50%; }
.tm-windows .tm-head { height: 72px; padding: 0 20px; gap: 12px; border-bottom: 1px solid #e5e5e5; background: #f9f9f9; }
.tm-windows .tm-initials { width: 40px; height: 40px; border-radius: 50%; background: #e1e1e1; color: #1a1a1a; display: grid; place-items: center; font-size: 14px; font-weight: 600; }
.tm-windows .tm-who b { font-size: 20px; font-weight: 600; }
.tm-tools { display: flex; align-items: center; gap: 18px; font-size: 13px; color: #1a1a1a; }
.tm-export { background: #0f6cbd; color: #fff; padding: 6px 14px; border-radius: 4px; }
.tm-windows .tm-bub { border-radius: 10px; background: #e8e8e8; }
.tm-windows .tm-out .tm-bub { background: #0f6cbd; }
.tm-windows .tm-time { margin: 4px 2px 0; font-size: 11px; color: #6b6b6b; }
.tm-windows .tm-day { color: #1a1a1a; font-weight: 400; }

/* --- Photos ------------------------------------------------------------------ */
.tm-photo { display: block; width: 200px; height: 133px; object-fit: cover; border-radius: 16px; }
.tm-windows .tm-photo { border-radius: 8px; }

/* --- Phones: a narrow scene (`width` under 700) --------------------------------- */
.tm-narrow .tm-seg, .tm-narrow .tm-tools > span:first-child { display: none; }
.tm-narrow .tm-bub { max-width: 300px; }
.tm-narrow.tm-inset .tm-body { padding-left: 42px; padding-right: 18px; }
.tm-narrow .tm-photo { width: 170px; height: 113px; }

/* --- The desktop page's band: the galaxy behind the heading and the scene ------ */
/* At most 1600px wide; on wider screens its sides fade into the band's black, so it never stretches. */
.tm-space { position: absolute; inset: 0 0 0 50%; width: 100%; max-width: 1600px; transform: translateX(-50%);
  background: center top / cover no-repeat; opacity: 0; transition: opacity 0.6s ease;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
  mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.tm-space.tm-space-shown { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .tm-space { transition: none; } }
@media (min-width: 1600px) {
  .tm-space {
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent), linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 55%, transparent), linear-gradient(to right, transparent, #000 18%, #000 82%, transparent);
    mask-composite: intersect;
  }
}
