/* The recorded demo's own styles, loaded after the portal's. Three jobs: the
   banner, what a page without its scripts needs (an open window, a phone
   layout the portal does not have yet), and the note that says a control is
   off. Nothing here restyles the product. */

:root { --tb:34px; }

/* The banner is a row of its own above the portal, and the portal scrolls
   under it: so every sticky header inside a page still sticks to the top of
   what scrolls, and nothing the page draws is ever under the banner. */
html, body { height:100%; margin:0; }
body { display:flex; flex-direction:column; height:100dvh; min-height:0 !important; overflow:hidden; }
.tourbar { flex:none; height:var(--tb); box-sizing:border-box; display:flex; align-items:center; gap:10px;
  padding:0 14px; font:500 12.5px/1 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif;
  color:#1b1503; background:#f5c84c; border-bottom:1px solid rgba(0,0,0,.18); white-space:nowrap; z-index:50; }
.tourbar b { font-weight:750; letter-spacing:.02em; text-transform:uppercase; font-size:11px;
  background:#1b1503; color:#f5c84c; padding:4px 8px; border-radius:999px; }
.tourbar .tb-t { overflow:hidden; text-overflow:ellipsis; min-width:0; }
.tourbar .tb-sp { flex:1; }
.tourbar a { color:#1b1503 !important; text-decoration:none; font-weight:650; padding:5px 10px; border-radius:999px; }
.tourbar a:hover { background:rgba(0,0,0,.1); }
.tourbar .tb-cta { background:#1b1503; color:#fff !important; }
.tourbar .tb-cta:hover { background:#000; }
.tourbar button { all:unset; box-sizing:border-box; cursor:pointer; font:inherit; font-weight:650; color:#1b1503;
  padding:5px 9px; border-radius:999px; border:1px solid rgba(0,0,0,.28); line-height:1; }
.tourbar button:hover { background:rgba(0,0,0,.1); }
.tourbar button:focus-visible, .tourbar a:focus-visible { outline:2px solid #1b1503; outline-offset:1px; }
.tourbar .tb-theme { min-width:14px; text-align:center; font-size:13px; }
.tourbar .tb-menu { display:none; }

.shell, .content.bare-content { flex:1 1 auto; min-height:0 !important; overflow:auto; }
.sidenav { height:calc(100dvh - var(--tb)); }

/* A window that was open when the page was saved (the values editor). demo.js
   opens it properly; this is how it sits if scripts are off. */
dialog[open]:not(:modal) { position:fixed; top:calc(var(--tb) + 4vh); left:50%; transform:translateX(-50%);
  margin:0; max-height:calc(100dvh - var(--tb) - 8vh); z-index:400; box-shadow:0 0 0 100vmax rgba(5,8,14,.72); }

/* a link that would only filter or sort the list it is on */
a[data-tour="off"] { cursor:default; }

.tour-toast { position:fixed; left:50%; bottom:22px; transform:translate(-50%, 12px); z-index:2147483000;
  max-width:min(92vw, 460px); box-sizing:border-box; padding:10px 16px; border-radius:10px;
  font:500 13px/1.35 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,sans-serif; text-align:center;
  color:#fff; background:#1b2233; border:1px solid rgba(255,255,255,.16); box-shadow:0 10px 30px rgba(0,0,0,.35);
  opacity:0; pointer-events:none; transition:opacity .18s ease, transform .18s ease; }
.tour-toast.on { opacity:1; transform:translate(-50%, 0); }
@media (prefers-reduced-motion: reduce) { .tour-toast { transition:none; } }

/* A frame of something the portal draws on a canvas (a remote desktop) */
img.tour-frame { display:block; max-width:100%; height:auto; }

/* Between a phone and a wide desktop the portal's top bar is wider than the
   page: its search box is a fixed 300px. In the demo it gives way first. */
@media (max-width:1180px) {
  .topbar .searchbox input, .topbar .searchbox input:focus { width:170px; }
}
@media (max-width:1040px) {
  .topbar .quick .qlabel { display:none; }
  .topbar .searchbox, .topbar form.searchbox { display:none; }
  .topbar .crumbs { min-width:0; }
  /* anything else wider than the page scrolls inside the page's own area */
  .content { overflow-x:auto; }
}
/* the terminal emulator's off-screen measuring helpers, in a page saved before the capture removed them */
.xterm-helpers, .xterm-char-measure-element { display:none !important; }

/* ── phones ────────────────────────────────────────────────────────────
   Below 820px the portal stacks its sidebar above the page as a wrapped block
   of thirty links, and its top bar's search box is wider than a phone. In the
   demo the sidebar folds behind the banner's Menu button and the top bar keeps
   only where you are. */
@media (max-width:820px) {
  .tourbar { gap:7px; padding:0 9px; }
  .tourbar .tb-menu { display:inline-block; }
  .tourbar .tb-home { display:none; }
  .sidenav { height:auto; }
  .sidenav .sidescroll, .sidenav .account, .sidenav .navtoggle { display:none; }
  :root[data-tour-menu="open"] .sidenav .sidescroll, :root[data-tour-menu="open"] .sidenav .account { display:revert; }
  :root[data-tour-menu="open"] .maincol { display:none; }
  .sidenav .brand { padding:10px 16px; }
  .topbar { padding:10px 16px; gap:10px; flex-wrap:wrap; }
  .topbar .quick, .topbar .searchbox, .topbar form.searchbox { display:none !important; }
  .content { padding:20px 16px; }
  /* A page's title row and a card's title row keep their buttons on one line;
     on a phone the buttons go under the title instead of off the screen. */
  .page-head, .page-head > div, .card-h { flex-wrap:wrap; min-width:0; }
  .page-head { gap:12px; }
  .page-head > div:not(:first-child) { margin-bottom:16px; }
  /* the values editor: its title and tool rows wrap instead of running off a narrow window */
  dialog.psh { max-width:calc(100vw - 16px) !important; margin:12px 8px !important; }
  dialog.psh .psh-bar, dialog.psh .lgbar { flex-wrap:wrap; height:auto; row-gap:6px; }
  /* one cluster card, one form field, per row */
  .clustercards { grid-template-columns:minmax(0, 1fr) !important; }
  .field-row { grid-template-columns:minmax(0, 1fr) !important; }
  /* A wide table or row grid scrolls sideways inside its own card, and the
     page itself never does. .content is the last resort for anything wide
     that is not in a card. */
  .card-b, .pbody, .pl, .tablewrap { overflow-x:auto; -webkit-overflow-scrolling:touch; }
  .content { overflow-x:auto; }
}
@media (max-width:560px) {
  .tourbar .tb-l { display:none; }
}
