/* Demo chrome — the thin Agentiq frame wrapped around the Timegem replica. */

html, body { height: 100%; }
body {
  margin: 0;
  background: #0a0a0a;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  overflow: hidden;
}

#demo-root { display: flex; flex-direction: column; height: 100vh; }

.demo-bar {
  flex: 0 0 46px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  background: #0a0a0a;
  color: #fff;
  font-size: 12.5px;
}
.demo-bar .mark { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.01em; }
.demo-bar .sep { width: 1px; height: 18px; background: rgba(255,255,255,.18); }
.demo-bar .what { color: rgba(255,255,255,.8); }
.demo-bar .what b { color: #fff; font-weight: 600; }

/* The fictional-data notice must survive every breakpoint. A visitor looking at
   what appears to be a live employee-monitoring UI has to be able to tell, at
   any width, that none of these people are real. */
.demo-bar .sample {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.8);
  white-space: nowrap;
}

.demo-bar .viewas { display: flex; align-items: center; gap: 7px; }
.demo-bar .viewas > span { color: rgba(255,255,255,.72); font-size: 11.5px; }
.demo-bar .viewas select {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 5px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.demo-bar .viewas select option { color: #0a0a0a; }
.demo-bar .spacer { flex: 1; }
.demo-bar a, .demo-bar button {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font: inherit;
  border: 1px solid rgba(255,255,255,.2);
  background: transparent;
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.demo-bar a:hover, .demo-bar button:hover { background: rgba(255,255,255,.1); color: #fff; }
.demo-bar button.primary { background: #fff; color: #0a0a0a; border-color: #fff; font-weight: 600; }
.demo-bar button.primary:hover { background: rgba(255,255,255,.88); color: #0a0a0a; }

#app {
  flex: 1;
  min-height: 0;
  background: #fff;
  overflow: hidden;
}
#app .tg-shell { height: 100%; }

/* ---------- Guided tour ------------------------------------------------- */

.tour {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 340px;
  background: #0a0a0a;
  color: #fff;
  border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, .35);
  z-index: 70;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.tour .step { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.68); }
.tour h4 { margin: 7px 0 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.tour p { margin: 8px 0 0; font-size: 12.8px; line-height: 1.55; color: rgba(255,255,255,.82); }
.tour .nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.tour .nav .dots { flex: 1; display: flex; gap: 4px; }
.tour .nav .dots i { width: 5px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.28); display: block; }
.tour .nav .dots i.on { background: #fff; width: 14px; }
.tour button {
  border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff;
  border-radius: 999px; padding: 6px 14px; font: 600 12.5px/1 'Plus Jakarta Sans', sans-serif; cursor: pointer;
}
.tour button:hover { background: rgba(255,255,255,.12); }
.tour button.primary { background: #fff; color: #0a0a0a; border-color: #fff; }
.tour .close { position: absolute; top: 12px; right: 12px; border: 0; background: none; color: rgba(255,255,255,.65); padding: 4px; }
.tour .close:hover { color: #fff; background: none; }

@media (max-width: 980px) {
  .demo-bar .viewas > span { display: none; }
}

/* Short forms swap in as the bar narrows; .tiny is the compact variant and
   is hidden at full width. */
.demo-bar .tiny { display: none; }

@media (max-width: 720px) {
  .demo-bar { gap: 8px; padding: 0 10px; font-size: 11.5px; }
  /* The product name and the "sample data" chip both stay — only the
     descriptive tail and the long labels are dropped. */
  .demo-bar .what b { color: #fff; font-size: 12.5px; }
  .demo-bar .what { font-size: 0; }
  .demo-bar .sep,
  .demo-bar .mark .lbl,
  .demo-bar #tour-start { display: none; }
  .demo-bar .sample .lbl,
  .demo-bar a .lbl { display: none; }
  .demo-bar .sample .tiny,
  .demo-bar a .tiny { display: inline; }
  .demo-bar .sample { padding: 3px 8px; letter-spacing: .04em; }
  .demo-bar a { padding: 5px 11px; }
  .demo-bar .viewas select { max-width: 118px; padding: 5px 8px; }
  .tour { left: 14px; right: 14px; width: auto; }
}

/* Last-resort guard: on a very narrow phone the bar scrolls itself rather
   than widening the document. */
@media (max-width: 430px) {
  .demo-bar { overflow-x: auto; scrollbar-width: none; }
  .demo-bar::-webkit-scrollbar { display: none; }
  .demo-bar > * { flex: 0 0 auto; }
  .demo-bar .spacer { flex: 1 0 2px; }
}
