/* Pieces of Xplore drawn on Discover (fragments.js), in the app's own look: DM Sans, no weight above
   600, sentence case everywhere, the app's colors prefixed --x- so they never meet the page's. */
.xa { --x-bg:#f9fafb; --x-surface:#fff; --x-s2:#f3f4f6; --x-border:#e5e7eb; --x-border-strong:#d1d5db;
  --x-text:#111827; --x-n700:#374151; --x-muted:#6b7280; --x-muted2:#9ca3af;
  --x-brand:#e11d64; --x-brand-strong:#be1255; --x-brand-50:#fff1f4; --x-brand-200:#fecdda;
  --x-indigo:#5864ed; --x-ok:#16a34a; --x-warn-600:#d97706; --x-neg-700:#b91c1c;
  --x-sans:"DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --x-mono:"IBM Plex Mono", ui-monospace, Menlo, monospace;
  font-family:var(--x-sans); font-optical-sizing:auto; font-size:14px; line-height:1.45; color:var(--x-text); text-align:left; }
.xa b, .xa strong { font-weight:600; }
.xa p { margin:0; max-width:none; }
.xa .ic { width:16px; height:16px; flex:none; display:block; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }

/* the app at rest, rail folded: the picture that stands in for the film */
.xa-app { display:flex; width:1280px; height:720px; background:var(--x-bg); }
.xa-rail { width:60px; flex:none; display:flex; flex-direction:column; align-items:center; gap:10px; padding:16px 0 14px; background:var(--x-brand); color:#fff; }
.xa-rail .mark { width:30px; height:30px; color:#fff; margin-bottom:8px; }
.xa-rail .btn { width:40px; height:40px; display:grid; place-items:center; border-radius:10px; color:#fff; }
.xa-rail .btn .ic { width:22px; height:22px; }
.xa-rail .new { background:#fff; color:var(--x-brand); border-radius:999px; }
.xa-rail .on { background:#fff; color:var(--x-brand); }
.xa-rail .sep { width:28px; height:2px; border-radius:1px; background:rgba(255,255,255,.35); }
.xa-rail .av { margin-top:auto; position:relative; width:36px; height:36px; border-radius:50%; background:#fff; color:var(--x-brand-strong);
  display:grid; place-items:center; font-size:12px; font-weight:600; }
.xa-rail .av i { position:absolute; right:-1px; bottom:-1px; width:11px; height:11px; border-radius:50%; background:var(--x-ok); border:2px solid var(--x-brand); }
.xa-main { position:relative; flex:1; min-width:0; }
.xa-top { position:absolute; right:20px; top:16px; display:flex; align-items:center; gap:8px; }
.xa-org { display:flex; align-items:center; gap:8px; height:36px; padding:0 14px; border:1px solid var(--x-border);
  border-radius:999px; background:var(--x-s2); color:var(--x-n700); font-size:14px; font-weight:500; }
.xa-org .ic { width:16px; height:16px; color:var(--x-muted); }
/* its conversation: the question above, the columns below, room between for the play control */
.xa-conv { position:absolute; left:50%; width:860px; transform:translateX(-50%); }
.xa-conv--top { top:92px; }
.xa-conv--bottom { top:440px; }
.xa-lead { margin-top:12px !important; font-size:16px; }
.xa-viz { padding:14px 16px 12px; background:#fff; border:1px solid var(--x-border); border-radius:12px; }
.xa-viz-title { font-size:14px; line-height:20px; font-weight:500; }
.xa-viz-sub { font-size:12px; line-height:16px; color:var(--x-muted); }
.xa-chart { display:block; width:100%; height:auto; margin-top:8px; overflow:visible; }
.xa-chart .ax, .xa-chart .fd { font:400 11px var(--x-mono); fill:var(--x-muted); }
.xa-chart .mo { font:400 11px var(--x-sans); fill:var(--x-n700); }
.xa-chart .fv { font:600 12px var(--x-mono); fill:var(--x-text); }
.xa-viz-note { margin-top:4px !important; font-size:12px; font-style:italic; color:var(--x-muted); }

/* a window of the app, to hold one fragment */
.xa-win { background:var(--x-bg); border:1px solid rgba(20,20,30,.12); border-radius:14px; overflow:hidden;
  box-shadow:0 1px 2px rgba(20,20,30,.05), 0 24px 48px -28px rgba(20,20,30,.38); }
.xa-pad { padding:20px 22px; }

/* a turn: who, when, the question in its pink bubble */
.xa-role { display:flex; gap:8px; justify-content:flex-end; font-size:12px; line-height:18px; font-weight:500; margin-bottom:10px; }
.xa-role.reply { justify-content:flex-start; }
.xa-role span { font-weight:400; color:var(--x-muted); }
.xa-role span::before { content:"·"; margin-right:8px; }
.xa-you { text-align:right; }
.xa-bubble { display:inline-block; max-width:88%; text-align:left; background:var(--x-brand-50); border:1px solid var(--x-brand-200); padding:12px 16px;
  border-radius:16px 16px 4px 16px; font-size:15px; line-height:1.5; }
.xa-answer { font-size:15px; line-height:1.6; color:var(--x-text); }

/* the trace */
.xa-steps { border:1px solid var(--x-border); border-radius:12px; background:var(--x-surface); }
.xa-steps-head { display:flex; align-items:center; gap:8px; padding:9px 12px; font-size:12px; line-height:18px; font-weight:500; color:var(--x-muted); }
.xa-steps-head .ic { width:14px; height:14px; }
.xa-steps-head .count { margin-left:auto; font-variant-numeric:tabular-nums; }
.xa-steps-body { padding:0 12px 10px; }
.xa-step { position:relative; display:flex; align-items:flex-start; gap:12px; padding:7px 0 7px 4px; }
.xa-step:not(:last-child)::after { content:""; position:absolute; left:13px; top:24px; bottom:-8px; width:1px; background:var(--x-border-strong); }
.xa-sdot { position:relative; z-index:1; width:18px; height:18px; flex:none; margin-top:1px; border-radius:50%; display:grid; place-items:center;
  background:var(--x-brand); color:#fff; }
.xa-sdot .ic { width:11px; height:11px; stroke-width:3; }
.xa-smain { flex:1; min-width:0; display:flex; flex-wrap:wrap; align-items:center; gap:4px 8px; }
.xa-sname { font-size:13px; line-height:20px; font-weight:500; }
.xa-pchip { position:relative; display:inline-flex; align-items:center; gap:4px; max-width:100%; font-size:11px; line-height:16px; font-weight:500; color:var(--x-muted);
  background:#fff; border:1px solid var(--x-border); border-radius:999px; padding:1px 8px; white-space:nowrap; }
.xa-pchip:not(.hover) { overflow:hidden; text-overflow:ellipsis; }
.xa-pchip.link { color:var(--x-brand); border-color:var(--x-brand-200); }
.xa-pchip.link .ic { width:10px; height:10px; stroke-width:2.4; }
.xa-pchip.hover { border-color:var(--x-brand); background:var(--x-brand-50); }
.xa-tip { position:absolute; z-index:2; left:50%; bottom:calc(100% + 8px); transform:translateX(-50%); padding:6px 10px; border-radius:8px;
  background:#111827; color:#fff; font-size:12px; line-height:16px; font-weight:500; white-space:nowrap; box-shadow:0 4px 6px -1px rgba(0,0,0,.1); }
.xa-tip::after { content:""; position:absolute; left:50%; top:100%; margin-left:-5px; border:5px solid transparent; border-top-color:#111827; }
.xa-tip.below { top:calc(100% + 8px); bottom:auto; }
.xa-tip.below::after { top:auto; bottom:100%; border-top-color:transparent; border-bottom-color:#111827; }
.xa-acts { display:flex; align-items:center; gap:6px; margin-top:10px; color:var(--x-muted); font-size:12px; font-weight:500; }
.xa-acts span { display:inline-flex; align-items:center; gap:6px; padding:4px 8px; }
.xa-acts .ic { width:14px; height:14px; }

/* key figures in one frame */
.xa-kpi { background:#fff; border:1px solid var(--x-border); border-radius:12px; overflow:hidden; }
.xa-kpi-title { padding:14px 16px 0; font-size:14px; line-height:20px; font-weight:500; }
.xa-kpi-hero { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.6fr); gap:20px; padding:12px 16px 16px; }
.xa-label { display:flex; flex-wrap:wrap; align-items:center; gap:2px 12px; font-size:12px; line-height:16px; font-weight:500; color:var(--x-muted); }
.xa-status { display:inline-flex; align-items:center; gap:4px; font-size:11px; color:var(--x-n700); }
.xa-dot { width:7px; height:7px; border-radius:999px; flex:none; }
.xa-dot.crit { background:var(--x-neg-700); }
.xa-dot.att { background:var(--x-warn-600); }
.xa-big { margin-top:6px; font-size:34px; line-height:1.15; font-weight:500; letter-spacing:-.02em; font-variant-numeric:tabular-nums; }
.xa-pill { display:inline-block; margin-top:10px; padding:3px 10px; border-radius:999px; background:var(--x-s2); font-size:12px; color:var(--x-n700); }
.xa-bars { display:grid; gap:9px; align-content:center; }
.xa-barrow { display:grid; grid-template-columns:118px minmax(0,1fr) 46px 32px; align-items:center; gap:10px; font-size:12px; color:var(--x-n700); }
.xa-track { height:5px; border-radius:3px; background:var(--x-s2); overflow:hidden; }
.xa-track i { display:block; height:100%; border-radius:3px; background:var(--x-indigo); }
.xa-barrow .v { text-align:right; font-weight:600; color:var(--x-text); font-variant-numeric:tabular-nums; }
.xa-barrow .p { text-align:right; color:var(--x-muted); font-variant-numeric:tabular-nums; }
.xa-band { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); border-top:1px solid var(--x-border); }
.xa-cell { padding:14px 16px; min-width:0; }
.xa-cell + .xa-cell { border-left:1px solid var(--x-border); }
.xa-cell .n { margin-top:4px; font-size:22px; line-height:1.2; font-weight:500; font-variant-numeric:tabular-nums; }
.xa-cell .s { margin-top:2px; font-size:12px; color:var(--x-muted); }

/* the export menu, open over the conversation under the bar */
.xa-exp { position:relative; }
.xa-exp__conv { margin-top:14px; }
.xa-exp .xa-menu { position:absolute; right:0; top:44px; margin:0; }
.xa-more { margin-top:14px; }
.xa-bar { display:flex; justify-content:flex-end; align-items:center; gap:8px; }
.xa-tb { display:inline-flex; align-items:center; gap:8px; height:36px; padding:0 14px; border:1px solid var(--x-border); border-radius:10px; background:#fff;
  font-size:14px; font-weight:500; color:var(--x-text); box-shadow:0 1px 2px rgba(0,0,0,.05); }
.xa-tb.icon { width:36px; padding:0; justify-content:center; }
.xa-tb.pressed { background:var(--x-s2); }
.xa-menu { margin:8px 0 0 auto; width:min(100%, 380px); padding:6px; background:#fff; border:1px solid var(--x-border); border-radius:12px;
  box-shadow:0 10px 15px -3px rgba(0,0,0,.1), 0 4px 6px -4px rgba(0,0,0,.1); }
.xa-mi { display:flex; align-items:center; gap:10px; padding:9px 10px; border-radius:8px; font-size:14px; color:var(--x-text); }
.xa-mi .ic { width:17px; height:17px; color:var(--x-muted); }
.xa-mi .h { margin-left:auto; font-size:12px; color:var(--x-muted); white-space:nowrap; }
.xa-mi.hover { background:var(--x-s2); }

@media (max-width:600px) {
  .xa-kpi-hero { grid-template-columns:minmax(0,1fr); }
  .xa-barrow { grid-template-columns:96px minmax(0,1fr) 44px 30px; }
  .xa-band { grid-template-columns:minmax(0,1fr); }
  .xa-cell + .xa-cell { border-left:0; border-top:1px solid var(--x-border); }
  .xa-cell { display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:12px; align-items:baseline; }
  .xa-cell .n { grid-column:2; grid-row:1 / span 2; margin:0; }
  .xa-pchip:not(.hover) { white-space:normal; overflow:visible; }
  .xa-tip { display:none; }
  .xa-exp .xa-menu { width:calc(100% - 12px); }
  .xa-more { display:none; }
}
