/* The workbook's preview in OUT (sheet.js), on every /automation page: its tabs in the page's colours, the sheet
   itself white with Excel's gridlines, letters and numbers, so it looks as it will in Excel. Expand, at the right of
   the tabs, widens the sheet alone out of the cell to the screen's sides (sheet.js sets its width and margin), where
   it is; the tabs, the cell bar and the note stay in the cell. */
.xl{margin-top:16px; min-width:0;}
.xl-head{display:flex; gap:8px; align-items:flex-start;}
.xl-tabs{position:relative; flex:1; min-width:0; display:flex; gap:6px; overflow-x:auto; padding-bottom:6px; scrollbar-width:thin;}
.xl-tab, .xl-wide{
  flex:none; font-family:var(--font-mono); font-size:11.5px; color:var(--text-mute); white-space:nowrap; cursor:pointer;
  border:1px solid var(--border-soft); border-radius:5px; padding:4px 9px; background:var(--bg);
}
.xl-tab:hover, .xl-wide:hover{color:var(--text); border-color:var(--text-mute);}
.xl-wide::before{content:"↔"; content:"↔" / ""; margin-right:6px;}
.xl-wide[aria-pressed="true"]{color:var(--teal); border-color:var(--teal-dim); background:var(--cell-hover);}
.xl-wide[aria-pressed="true"]::before{content:"→←"; content:"→←" / "";}
.xl-tab.done{color:var(--teal); border-color:var(--teal-dim);}
.xl-tab.manual, .xl-tab.attention{color:var(--amber); border-color:var(--amber-dim);}
.xl-tab[aria-selected="true"]{background:var(--cell-hover); box-shadow:inset 0 -2px 0 currentColor;}
.xl-tab[aria-selected="true"]:not(.done):not(.manual):not(.attention){color:var(--text);}
.xl-load{margin-top:4px;}
.xl-load .bar{margin-top:6px;}

/* the selected cell: its address and all it holds, as Excel's formula bar */
.xl-cellbar{
  display:flex; gap:12px; align-items:baseline; margin-top:6px; padding:6px 10px; min-height:31px; max-height:8em; overflow:auto;
  background:var(--bg); border:1px solid var(--border-soft); border-radius:6px 6px 0 0;
  font-family:var(--font-mono); font-size:12px; color:var(--text);
}
.xl-addr{flex:none; min-width:4.5ch; color:var(--text-mute);}
.xl-value{white-space:pre-wrap; overflow-wrap:anywhere; min-width:0;}
.xl-formula{margin-left:12px; color:var(--text-mute);}

.xl-frame{
  position:relative; height:min(62vh, 560px); min-height:260px; overflow:hidden; color:#000; background:#fff;
  border:1px solid var(--border-soft); border-top:0; border-radius:0 0 6px 6px;
}
.xl.wide .xl-cellbar{border-radius:6px;}               /* expanded: the cell bar and the sheet apart */
.xl.wide .xl-frame{z-index:1; margin-top:6px; border-top:1px solid var(--border-soft); border-radius:6px;}
.xl-frame.waiting .xl-scroll{opacity:.35;}
.xl-scroll{position:absolute; inset:0; overflow:auto; overscroll-behavior:contain; outline:none;}
.xl-scroll:focus-visible{box-shadow:inset 0 0 0 2px var(--teal);}
.xl-top{position:sticky; top:0; z-index:3; background:#fff;}          /* the letters, and the frozen rows */
.xl-corner{position:sticky; left:0; z-index:2; background:#fff;}       /* where they meet the frozen columns */
.xl-body{position:relative;}
.xl-left{position:sticky; left:0; z-index:2; background:#fff;}         /* the numbers, and the frozen columns */
.xl-cells{position:absolute; inset:0; z-index:0;}

.xl .c{position:absolute; box-sizing:border-box; display:flex; overflow:hidden; padding:0 3px; line-height:1.2; color:#000; cursor:cell;}
.xl .c.spill{overflow:visible;}
.xl .c .t{flex:none; position:relative; z-index:1; max-width:100%; overflow:hidden; white-space:pre;}
.xl .c .t.w{flex:1 1 auto; max-height:100%; white-space:pre-wrap; overflow-wrap:anywhere;}
.xl .c .t.u{color:#8a8a8a; font-style:italic;}
.xl .h{
  position:absolute; box-sizing:border-box; display:flex; align-items:center; justify-content:center; overflow:hidden;
  background:#f3f3f3; border-right:1px solid #d4d4d4; border-bottom:1px solid #d4d4d4;
  font:11px/1 "Segoe UI", system-ui, sans-serif; color:#555;
}
.xl .h.on{background:#d2eadd; color:#185c37;}
.xl .h.corner{background:#ebebeb;}
.xl-sel{position:absolute; z-index:2; box-sizing:border-box; border:2px solid #217346; pointer-events:none;}
/* The drawings over the cells (sheet.js): charts, slicers, and a box for what only Excel shows. */
.xl-art{position:absolute; width:0; height:0; z-index:1; pointer-events:none;}
.xl-draw{position:absolute; box-sizing:border-box; pointer-events:auto; color:#000; cursor:default;}
.xl-chart svg{display:block; overflow:hidden;}
.xl-slicer{display:flex; flex-direction:column; overflow:hidden; padding:5px 7px 7px; background:#fff; border:1px solid var(--line); font-size:13.3px; line-height:1.2;}
.xl-slicer-head{flex:none; padding:1px 0 5px; margin-bottom:7px; border-bottom:1px solid var(--line); font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.xl-slicer-items{display:grid; gap:4px 6px; grid-auto-rows:var(--row); min-height:0; overflow:hidden;}
.xl-slicer-items span{display:block; box-sizing:border-box; padding:0 7px; line-height:calc(var(--row) - 2px); border:1px solid #a6a6a6; background:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.xl-slicer-items span.on{background:var(--on); color:var(--on-text);}
.xl-slicer-items span.none{color:#a6a6a6;}
.xl-other{display:flex; align-items:center; justify-content:center; padding:8px; overflow:hidden; text-align:center;
  border:1px dashed #8a8a8a; background:rgba(255,255,255,.88); font:12px/1.35 "Segoe UI", system-ui, sans-serif; color:#555;}
.xl-note{margin-top:8px; font-size:12.5px; color:var(--text-mute); white-space:pre-line; text-wrap:pretty;}
.xl-note:empty{display:none;}

@media(max-width:640px){
  .xl-frame{height:58vh;}
}

/* Test inputs and previews (testfiles.js, preview.js), on every /automation page: under a drop box, its made-up test
   files with a preview each and the button that adds them; a preview button on every file added; the pop-up the
   preview opens in, over the page, as the help video's; and the mark of an answer the page made up (Use test answers). */
.test-files{display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-top:10px; font-family:var(--font-mono); font-size:12px; color:var(--text-mute);}
.test-files .test-lead{flex-basis:100%;}
.test-files .test-list{display:flex; flex-wrap:wrap; gap:6px; min-width:0;}
.test-files .test-list.many{flex-direction:column; align-items:flex-start; flex-basis:100%;}
.test-files.stack .test-list{flex-basis:100%;}         /* the Use button on its own line, under the file (/daily's and /monthly's IN 1) */
.test-chip{display:inline-flex; align-items:baseline; gap:8px; max-width:100%; padding:3px 9px; border:1px dashed var(--border); border-radius:5px; color:var(--text-dim);}
.test-chip .fname{overflow-wrap:anywhere;}
.test-files .btn{padding:4px 10px; font-size:11.5px;}
.test-files .note{flex-basis:100%; margin:0;}
.test-files .note:empty{display:none;}
button.preview-btn{border:0; background:none; padding:0 2px; margin:0; font-family:var(--font-mono); font-size:11.5px; color:var(--teal); text-decoration:underline; text-decoration-color:var(--teal-dim); text-underline-offset:3px; cursor:pointer;}
button.preview-btn:hover{color:#6EE5D2;}
.tag.test{color:var(--amber); border-color:var(--amber-dim);}
.try-test{display:flex; flex-wrap:wrap; align-items:center; gap:8px 12px; margin-top:14px;}
.try-test .hint{font-size:12px; color:var(--text-mute);}
/* Every button that runs on made-up data is green (lime, not the teal), a colour nothing else on the site uses, so it stands apart. */
.try-test .btn.ghost, .test-files .btn.ghost{color:var(--green); border-color:var(--green-dim);}
.try-test .btn.ghost:hover:not(:disabled), .test-files .btn.ghost:hover:not(:disabled){color:#B8EE88; border-color:var(--green);}

dialog.preview{
  margin:auto; width:min(1180px, calc(100% - 32px)); max-height:calc(100% - 32px);
  background:var(--cell); color:var(--text); border:1px solid var(--border); border-radius:10px; padding:0; overflow:hidden;
}
dialog.preview::backdrop{background:rgba(5,8,15,.78); backdrop-filter:blur(2px);}
.preview-head{display:flex; align-items:center; justify-content:space-between; gap:12px; padding:10px 12px 10px 18px; border-bottom:1px solid var(--border);}
.preview-head .sec-head{margin:0; min-width:0; overflow-wrap:anywhere;}
.preview-close{flex:none; background:none; border:0; color:var(--text-dim); font-size:22px; line-height:1; width:34px; height:34px; border-radius:6px; cursor:pointer;}
.preview-close:hover{color:var(--teal); background:var(--cell-hover);}
.preview-body{padding:12px 18px 16px; max-height:calc(100vh - 100px); overflow:auto;}
.preview-about{margin:0; font-size:12.5px; color:var(--text-mute);}
.preview-about.error{color:var(--red);}
.preview-sheet .xl{margin-top:8px;}
.preview-sheet .xl-wide{display:none;}
.test-more{flex-basis:100%;}
.test-more > summary{cursor:pointer; color:var(--teal); width:fit-content;}
.test-more > .test-list{margin-top:6px;}

/* The walkthrough the ? button plays (tour.js), on every /automation page: a green pointer going from cell to cell
   over the page, its caption beside it, the arrow dipping where it presses, a pulse round what it points at, and Skip
   and End. Green, as everything that runs on made-up data. It moves with reduced motion too: it plays only when asked
   for, as the help video does. */
.tour{position:fixed; inset:0; z-index:50; pointer-events:none; opacity:0; transition:opacity .25s;}
.tour.on{opacity:1;}
.tour-pointer, .tour-say{position:absolute; left:0; top:0; will-change:transform;}
.tour-pointer{margin:-3px 0 0 -4px; transition:transform .65s cubic-bezier(.45,.05,.25,1); filter:drop-shadow(0 0 6px rgba(155,225,93,.55));}
.tour-pointer path{fill:var(--green); stroke:var(--bg); stroke-width:1.4; stroke-linejoin:round;}
.tour-say{
  max-width:min(320px, calc(100vw - 24px)); padding:7px 11px; border:1px solid var(--green-dim); border-radius:7px;
  background:rgba(14,19,32,.94); color:var(--green); font-family:var(--font-mono); font-size:12px; line-height:1.45;
  box-shadow:0 6px 20px rgba(0,0,0,.4); transition:transform .65s cubic-bezier(.45,.05,.25,1), opacity .2s; z-index:2;
}
.tour-say.off{opacity:0;}
.tour-say-text{display:block;}
/* Stepped (/daily): the caption waits for Next, which it holds, right-aligned under its text. */
.tour-say.ask{pointer-events:auto;}
.tour-next{
  display:block; margin:8px 0 0 auto; padding:4px 12px; cursor:pointer; border-radius:5px;
  border:1px solid var(--green); background:var(--green); color:var(--bg); font:600 12px var(--font-mono);
}
.tour-next:hover{background:#B8EE88;}
.tour-next[hidden]{display:none;}
/* by hand: in place of Next, what is pointed at is the viewer's to press or do. Under the caption: what went wrong
   (amber), and, left a while, what helps; at its foot, Show me and the like (the only part of the caption that takes
   a click), and "Your turn". */
.tour-say-foot{display:flex; align-items:center; flex-wrap:wrap; gap:6px 10px; margin-top:8px;}
.tour-say-foot[hidden], .tour-acts[hidden], .tour-err[hidden], .tour-hint[hidden]{display:none;}
.tour-acts{display:flex; flex-wrap:wrap; gap:6px; pointer-events:auto;}
.tour-act{
  cursor:pointer; padding:3px 10px; border-radius:5px; border:1px solid var(--green-dim); background:var(--cell);
  color:var(--green); font:600 11.5px var(--font-mono);
}
.tour-act:hover, .tour-act:focus-visible{border-color:var(--green); background:var(--cell-hover);}
.tour-yours{display:flex; align-items:center; gap:7px; margin-left:auto; font:600 12px var(--font-mono); color:var(--green);}
.tour-yours::before{content:""; width:7px; height:7px; border-radius:50%; background:var(--green); animation:tour-blink 1.2s ease-in-out infinite;}
.tour-err{display:block; margin-top:7px; padding-top:6px; border-top:1px solid var(--border-soft); color:var(--amber); white-space:pre-line;}
.tour-hint{display:block; margin-top:6px; color:var(--text-dim);}
/* left a while: the pointer bobs toward what it is on, twice */
.tour-pointer.nudge svg{animation:tour-nudge .9s ease-in-out 2;}
@keyframes tour-nudge{50%{translate:-6px -8px}}
/* The bar's buttons stacked, one above the other, the same width, at the screen's foot on the right. */
.tour-bar{position:fixed; right:16px; bottom:16px; z-index:3; display:flex; flex-direction:column; align-items:stretch; gap:6px; pointer-events:auto;}
.tour-skip{
  cursor:pointer; font-family:var(--font-mono); font-size:12px; color:var(--green); background:var(--cell);
  border:1px solid var(--green-dim); border-radius:6px; padding:7px 13px;
}
.tour-skip:hover{border-color:var(--green);}
.tour-skip[hidden]{display:none;}
/* Autoplay (/daily): its button above Skip and End, filled while on; a line along the caption's foot fills until it
   goes on by itself (tour.js autoClock), and stops filling while paused. */
.tour-autoplay[aria-pressed="true"]{background:var(--green); color:var(--bg); border-color:var(--green); font-weight:600;}
/* laid on the caption's bottom edge, between its rounded corners, so it fills along the edge rather than squeezed
   under Show me; its track the edge's own colour */
.tour-meter{position:absolute; left:8px; right:8px; bottom:-1px; height:2px; border-radius:1px; background:var(--green-dim); overflow:hidden;}
.tour-meter[hidden]{display:none;}
.tour-meter::after{content:""; position:absolute; inset:0; background:var(--green); transform-origin:left; transform:scaleX(var(--p, 0)); transition:transform .2s linear;}
.tour.fast .tour-bar{display:none;}
.tour.fast .tour-pointer, .tour.fast .tour-say, .tour.follow .tour-pointer{transition:none;}
.tour-pointer{z-index:2;}

/* A choice at an input (ask), beside the pointer; the card waiting on the viewer (waitFor), at the screen's foot so
   the page above stays free to use; what either is on keeps a steady green edge until it is done. */
.tour-card{
  position:absolute; left:0; top:0; z-index:1; pointer-events:auto; width:min(340px, calc(100vw - 24px));
  padding:12px 13px; border:1px solid var(--green-dim); border-radius:9px; background:rgba(14,19,32,.97);
  box-shadow:0 10px 30px rgba(0,0,0,.5); font-family:var(--font-mono); font-size:12px; line-height:1.45; color:var(--green);
  animation:tour-card-in .25s ease-out;
}
@keyframes tour-card-in{from{opacity:0; translate:0 6px}}
.tour-card-text{margin:0 0 9px;}
.tour-choices{display:flex; flex-direction:column; gap:6px;}
.tour-choice{
  display:flex; flex-direction:column; gap:2px; text-align:left; cursor:pointer; padding:7px 10px; border-radius:6px;
  border:1px solid var(--border); background:var(--cell); color:var(--text); font-family:var(--font-body); font-size:13px;
}
.tour-choice:hover, .tour-choice:focus-visible{border-color:var(--green); background:var(--cell-hover);}
.tour-choice-label{font-weight:600;}
.tour-choice-hint{font-size:12px; color:var(--text-dim); line-height:1.4;}
.tour-choice.small{display:inline-block; font-size:12px; padding:5px 10px;}
.tour-countdown{margin-top:9px;}
.tour-countdown[hidden]{display:none;}
.tour-dock{left:16px; top:auto; bottom:16px; width:min(380px, calc(100vw - 32px));}
.tour-dock-row{display:flex; flex-wrap:wrap; gap:6px; margin-top:9px;}
.tour-waiting{margin:0; color:var(--text-mute); display:flex; align-items:center; gap:7px;}
.tour-waiting::before{content:""; width:7px; height:7px; border-radius:50%; background:var(--green); animation:tour-blink 1.2s ease-in-out infinite;}
@keyframes tour-blink{50%{opacity:.25}}
.tour-hold{outline:2px dashed var(--green) !important; outline-offset:4px; border-radius:6px;}
.build-glow.tour-hold{outline:none !important;}
@media (max-width:640px){
  .tour-dock{bottom:140px;}                            /* above the stacked bar, which a narrow screen has no room beside */
}

/* The windows the walkthrough draws over the page, for how a real input goes in (files, browser, chat, Copilot
   Studio): the page dimmed under them and out of reach, the pointer over them. A window of no system in
   particular, whose buttons and boxes are real ones, to press and paste into by hand. */
:where(.tour-win) button{font:inherit; color:inherit; background:none; border:0; padding:0; margin:0; text-align:inherit; cursor:pointer;}
.tour-win button:focus-visible, .tour-win [tabindex]:focus-visible, .tour-win textarea:focus-visible{outline:2px solid var(--green); outline-offset:1px;}
.tour-dim{
  position:absolute; inset:0; pointer-events:auto; display:grid; place-items:center; padding:16px;
  background:rgba(5,8,15,.6); opacity:0; transition:opacity .22s;
}
.tour-dim.on{opacity:1;}
.tour-win{
  position:relative; width:min(640px, 100%); max-height:calc(100vh - 32px); display:flex; flex-direction:column; overflow:hidden;
  background:#1A2032; border:1px solid var(--border); border-radius:10px; box-shadow:0 24px 60px rgba(0,0,0,.6);
  color:var(--text); font-family:var(--font-body); font-size:13px; scale:.97; transition:scale .22s;
}
.tour-dim.on .tour-win{scale:1;}
.tour-win-head{display:flex; align-items:center; gap:10px; padding:9px 12px; background:#131828; border-bottom:1px solid var(--border-soft);}
.tour-win-dots{width:40px; height:10px; background:radial-gradient(circle 5px at 5px 5px, #F07A7A 98%, transparent), radial-gradient(circle 5px at 20px 5px, #F0B860 98%, transparent), radial-gradient(circle 5px at 35px 5px, #9BE15D 98%, transparent);}
.tour-win-title{flex:1; text-align:center; font-weight:600; color:var(--text-dim); font-size:12.5px;}
.tour-win-x{color:var(--text-mute);}
.tour-win-body{display:grid; grid-template-columns:130px 1fr; min-height:200px;}
.tour-win-foot{display:flex; flex-direction:column; gap:8px; padding:10px 12px; border-top:1px solid var(--border-soft); background:#161C2C;}
.tour-win-foot.row{flex-direction:row; align-items:flex-end;}
.tour-path{padding:7px 12px; font-family:var(--font-mono); font-size:12px; color:var(--text-dim); border-bottom:1px solid var(--border-soft); white-space:pre;}
.tour-nav{padding:8px 6px; border-right:1px solid var(--border-soft); display:flex; flex-direction:column; gap:2px;}
.tour-place{display:block; width:100%; padding:5px 8px; border-radius:5px; color:var(--text-dim);}
.tour-place::before{content:""; display:inline-block; width:11px; height:8px; margin-right:7px; border-radius:1px 3px 2px 2px; background:var(--amber-dim);}
button.tour-place:hover{color:var(--text);}
.tour-place.on{background:var(--cell-hover); color:var(--text);}
.tour-list{padding:4px 0; min-width:0;}
.tour-file{display:grid; grid-template-columns:1fr 130px 60px; gap:10px; padding:5px 12px; align-items:center;}
.tour-file[role="option"]{cursor:default; user-select:none;}
.tour-file[role="option"]:hover{background:rgba(255,255,255,.035);}
.tour-file.in{animation:tour-file-in .3s ease-out both;}
.tour-file > span{white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--text-dim); font-size:12px;}
.tour-file > span.tour-fname{color:var(--text); font-size:13px;}
.tour-file.head > span{color:var(--text-mute); font-size:11.5px;}
.tour-file.on{background:rgba(88,217,198,.16); box-shadow:inset 2px 0 0 var(--teal);}
.tour-file.on.wrong{background:rgba(240,184,96,.12); box-shadow:inset 2px 0 0 var(--amber);}
/* a row outlined by the walkthrough: inside its edges, as the list cuts off what goes past them */
.tour-file.tour-hold, .tour-file.tour-on{outline-offset:-2px; border-radius:4px;}
.tour-file.tour-on{animation-name:tour-pulse-row;}
@keyframes tour-pulse-row{from{outline-color:transparent} 30%{outline-color:var(--green)}}
/* a sheet's tab the same: its strip scrolls sideways, so an outline past its edges is cut at the top and runs into
   the tabs beside it */
.xl-tab.tour-hold, .xl-tab.tour-on{outline-offset:-2px; border-radius:5px;}
.xl-tab.tour-on{animation-name:tour-pulse-row;}
.tour-empty{margin:14px 12px; color:var(--text-mute); font-size:12.5px;}
/* several files picked at once (/monthly's exports): the keys pressed shown over the list, the names cut short in the field */
.tour-win.many .tour-win-body{position:relative; min-height:0; overflow:auto;}
.tour-win.many .tour-field{min-width:0;}
@keyframes tour-file-in{from{opacity:0; translate:0 4px}}
.tour-ext{
  display:inline-block; min-width:30px; margin-right:8px; padding:1px 3px; border-radius:3px; text-align:center;
  font:600 9px/1.4 var(--font-mono); font-style:normal; color:var(--bg); background:var(--text-mute); vertical-align:1px;
}
.tour-ext.csv, .tour-ext.xlsx{background:var(--green);}
.tour-ext.gz, .tour-ext.jsonl{background:var(--teal);}
.tour-ext.py{background:var(--amber);}
.tour-ext.folder{background:var(--amber-dim); min-width:22px; height:13px;}
.tour-row-in{display:flex; align-items:center; gap:8px;}
.tour-row-in.end{justify-content:flex-end;}
.tour-lbl{color:var(--text-mute); font-size:12px;}
.tour-field{flex:1; min-height:27px; padding:4px 8px; border:1px solid var(--border); border-radius:5px; background:var(--bg); font-size:12.5px; overflow:hidden; white-space:nowrap; text-overflow:ellipsis;}
.tour-kinds{font-size:12px; color:var(--text-dim); padding:4px 8px; border:1px solid var(--border); border-radius:5px; white-space:nowrap;}
.tour-btn{display:inline-block; padding:5px 14px; border:1px solid var(--border); border-radius:5px; background:var(--cell); font-size:12.5px; color:var(--text);}
.tour-btn.primary{background:var(--teal); border-color:var(--teal); color:var(--bg); font-weight:600;}
.tour-btn.small{padding:2px 9px; font-size:11.5px; align-self:flex-start;}
button.tour-btn:hover{border-color:var(--teal);}
button.tour-btn.primary:hover{background:#7BE6D6;}
.tour-url-row{display:flex; align-items:center; gap:6px; margin:8px 12px;}
.tour-url{flex:1; min-width:0; padding:5px 10px; border-radius:6px; background:var(--bg); color:var(--text-dim); font:12px var(--font-mono); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.tour-touch{display:none; gap:6px; flex:none;}                 /* a phone's Select all and Copy: it has no Ctrl keys */
@media (pointer:coarse){ .tour-touch{display:flex;} }
.tour-view{position:relative; border-top:1px solid var(--border-soft);}
.tour-frame{display:block; width:100%; height:min(380px, 55vh); border:0; background:var(--bg); pointer-events:none;}
.tour-frame.live{pointer-events:auto;}                          /* by hand: clicked in, selected and copied */
/* the page in a drawn browser (a chat, Yellow.ai) outlined inside its edges: the window's own edge would cut an outline
   drawn outside them down to a line under the address bar */
.tour-view.tour-hold, .tour-view.tour-on, .tour-view.tour-lit{outline-offset:-3px; border-radius:0 0 9px 9px;}
.tour-view.tour-on{animation-name:tour-pulse-in;}
@keyframes tour-pulse-in{from{outline-offset:-16px; outline-color:transparent} 30%{outline-offset:-3px; outline-color:var(--green)}}
.tour-keys{
  position:absolute; left:50%; bottom:16px; translate:-50% 0; padding:6px 14px; border-radius:7px; opacity:0;
  background:rgba(14,19,32,.94); border:1px solid var(--green-dim); color:var(--green); font:600 13px var(--font-mono);
}
.tour-keys.on{opacity:1; animation:tour-keys .15s ease-out;}     /* only while pressed: gone at once after (tour.js) */
@keyframes tour-keys{from{opacity:0; scale:.9}}
.tour-offscreen{position:fixed; left:-10000px; top:0; width:800px; height:600px; border:0; visibility:visible;}
/* /yearly's practice (tour.yellow): a browser's bookmarks bar, along the top of the screen for the bookmark to be
   dragged to, then in Yellow.ai's drawn window, light as Yellow.ai is, with the bookmark's box at its foot */
.tour-bm{display:flex; align-items:center; gap:4px; padding:5px 10px; font:12px var(--font-body); color:var(--text-dim); overflow:hidden; white-space:nowrap;}
.tour-bm.top{position:fixed; left:0; right:0; top:0; z-index:2; min-height:36px; pointer-events:auto; background:#1A2032; border-bottom:1px solid var(--border); box-shadow:0 6px 18px rgba(0,0,0,.35);}
.tour-bm.top.drag .tour-bm-slot{border-color:var(--green); color:var(--green);}
.tour-bm.top.over{background:#22304A;}
.tour-bm.in{border-top:1px solid var(--border-soft); background:#131828;}
.tour-bm-item{display:inline-flex; align-items:center; padding:3px 9px; border-radius:12px; color:var(--text-dim); font-size:12px;}
.tour-bm-item.mine{color:var(--teal); font-weight:600;}
button.tour-bm-item.mine:hover{background:var(--cell-hover);}
.tour-bm-slot{display:inline-flex; align-items:center; min-width:120px; min-height:24px; padding:2px 10px; border:1.5px dashed var(--border); border-radius:12px; color:var(--text-mute); font-size:11.5px;}
.tour-bm-slot:empty{min-width:90px;}
.tour-win.tour-yellow{width:min(760px, 100%);}
.tour-yl{height:min(340px, 46vh); overflow:hidden; background:#F2F3F7; color:#1F2024; font-family:'Lato', 'Segoe UI', sans-serif;}
.tour-yl-head{display:flex; align-items:center; gap:10px; padding:9px 16px; background:#FFF; border-bottom:1px solid #E4E5EA;}
.tour-yl-head b{font-size:18px; letter-spacing:-.02em; color:#111;}
.tour-yl-tag{margin-left:auto; font:11px var(--font-mono); color:#9A6400; border:1px solid #E2C48A; background:#FFF8EA; border-radius:5px; padding:1px 7px;}
/* the chat as Yellow.ai shows a WhatsApp one (as daily/chat's): Bella on the right, the customer on the left, a press
   quoting her message in a dark box with a yellow edge */
.tour-yl-talk{display:flex; flex-direction:column; gap:10px; padding:12px 16px; font-size:12.5px; line-height:1.45;}
.tour-yl-talk p{margin:0;}
.tour-yl-msg.bot{align-self:flex-end; display:grid; grid-template-columns:minmax(0,1fr) auto; column-gap:8px; row-gap:3px; justify-items:end; max-width:75%;}
.tour-yl-who{grid-column:1; font-size:10.5px;}
.tour-yl-stack{grid-column:1; display:grid; justify-items:end; gap:5px;}
.tour-yl-face{grid-column:2; grid-row:2; align-self:end; width:22px; height:22px; border-radius:50%; border:1px solid #C5E2E2; background:#DCEFEF url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Ccircle cx='15' cy='11.5' r='5' fill='%23256F74'/%3E%3Cpath d='M5.5 27c.8-5.6 4.6-8.5 9.5-8.5s8.7 2.9 9.5 8.5z' fill='%23256F74'/%3E%3C/svg%3E") no-repeat center/100%;}
.tour-yl-bubble{padding:6px 12px; border-radius:14px; background:#E7E7EB;}
.tour-yl-msg.me{align-self:flex-start; display:grid; grid-template-columns:22px minmax(0,1fr); column-gap:8px; max-width:75%;}
.tour-yl-msg.me .tour-yl-bubble{grid-column:2; justify-self:start; background:#E9E8FB;}
.tour-yl-initial{grid-column:1; align-self:center; display:grid; place-items:center; width:22px; height:22px; border-radius:50%; background:#F6E8F6; color:#A04AA8; border:1px solid #EBD3EC; font-size:11px;}
.tour-yl-quote{grid-column:2; justify-self:start; padding:7px 11px; border-left:3px solid #F2B807; background:#5E5B6B; color:#FFF; font-style:italic;}
.tour-yl-quote p{padding-right:2px;}
.tour-yl-pills{display:flex; flex-wrap:wrap; gap:5px;}
.tour-yl-pills.out{justify-content:flex-end;}
.tour-yl-pills.in{margin-top:6px;}
.tour-yl-pills span{padding:3px 10px; border-radius:14px; border:1px solid #4A4B55; background:#FFF; font-size:11.5px;}
.tour-yl-pills.in span{border-color:rgba(255,255,255,.85); background:transparent;}
.tour-yl-box{
  position:absolute; right:12px; bottom:12px; width:min(330px, calc(100% - 24px)); padding:12px 14px; border-radius:10px;
  background:#151B2B; color:#E7E9F1; border:1px solid #2E6F65; box-shadow:0 12px 30px rgba(0,0,0,.35); font:13px/1.5 var(--font-body);
}
.tour-yl-box b{display:block; font-size:14px; margin-bottom:4px;}
.tour-yl-say{margin:4px 0;}
.tour-yl-bar{height:6px; margin:8px 0 4px; border-radius:3px; background:#262E44; overflow:hidden;}
.tour-yl-bar i{display:block; height:100%; width:0; background:#58D9C6; transition:width .2s;}
.tour-yl-bar[hidden], .tour-yl-keep[hidden], .tour-yl-box[hidden]{display:none;}
.tour-yl-keep{margin:4px 0; color:#F0B860; font-size:12px;}
.tour-yl-box .tour-btn{margin-top:6px;}
.tour-win-x{padding:0 4px; border-radius:4px;}
/* Copilot Studio, as it looks (dark): a bar with the agent, its tabs and Publish; a rail of icons; the Overview's
   cards in a column that scrolls, Instructions the last, out of sight till scrolled to. */
.tour-win.tour-studio, .tour-win.tour-chat{width:min(940px, 100%); background:#1F1F1F; font-family:"Segoe UI", var(--font-body); --ms-line:#3A3A3A; --ms-card:#292929; --ms-text:#F3F3F3; --ms-dim:#C8C8C8;}
.tour-studio .tour-win-head, .tour-chat .tour-win-head{background:#161616; border-bottom-color:var(--ms-line);}
.tour-cs-top{display:flex; align-items:center; gap:10px 18px; flex-wrap:wrap; padding:9px 14px; border-bottom:1px solid var(--ms-line); color:var(--ms-text);}
.tour-cs-who{display:flex; align-items:center; gap:8px; font-size:14px; white-space:nowrap;}
.tour-cs-logo{display:inline-grid; place-items:center;}
.tour-cs-logo.big svg{width:34px; height:34px;}
.tour-cs-ok{color:#6CCB5F; display:inline-grid;}
.tour-cs-tabs{display:flex; gap:14px; font-size:12.5px; color:var(--ms-dim); flex-wrap:wrap;}
.tour-cs-tabs .on{color:var(--ms-text); box-shadow:0 2px 0 #4F9CF9; padding-bottom:2px;}
.tour-cs-right{display:flex; align-items:center; gap:8px; margin-left:auto; font-size:12px; color:var(--ms-dim);}
.tour-cs-pubat.now{color:#6CCB5F;}
.tour-studio .tour-btn, .tour-chat .tour-btn{background:transparent; border-color:#5A5A5A; color:var(--ms-text); border-radius:4px;}
.tour-studio .tour-btn.primary{background:#4F9CF9; border-color:#4F9CF9; color:#0B0B0B;}
.tour-studio button.tour-btn:hover{border-color:#8FBFFB;}
.tour-studio button.tour-btn.primary:hover{background:#7DB6FB;}
.tour-cs-test{border-color:#4F9CF9 !important;}
.tour-cs{position:relative; display:grid; grid-template-columns:40px minmax(0,1fr);}
.tour-cs-rail{display:flex; flex-direction:column; align-items:center; gap:16px; padding:14px 0; background:#2B2B2B; border-right:1px solid var(--ms-line);}
.tour-cs-rail i{width:16px; height:16px; border-radius:4px; border:1.5px solid #8A8A8A;}
.tour-cs-main{position:relative; height:min(430px, 56vh); overflow:auto; padding:14px 16px 18px; display:flex; flex-direction:column; gap:12px; color:var(--ms-text);}
.tour-cs-main:focus-visible{outline:2px solid var(--green); outline-offset:-2px;}
.tour-studio-card{border:1px solid var(--ms-line); border-radius:8px; padding:12px 16px; background:var(--ms-card); display:flex; flex-direction:column; gap:10px; flex:none;}
.tour-studio-head{display:flex; align-items:center; gap:10px; justify-content:space-between; font-size:13.5px;}
.tour-cs-row{display:flex; align-items:center; gap:14px;}
.tour-cs-pair{display:flex; flex-direction:column; gap:2px; font-size:12.5px; color:var(--ms-dim);}
.tour-cs-pair b{color:var(--ms-text); font-weight:600;}
.tour-cs-pair.line{border-top:1px solid var(--ms-line); padding-top:10px;}
.tour-cs-p{margin:0; font-size:12.5px; color:var(--ms-dim);}
.tour-cs-select{align-self:flex-start; min-width:min(300px, 100%); padding:6px 10px; border:1px solid #6A6A6A; border-radius:4px; font-size:12.5px;}
.tour-cs-select::after{content:"⌄"; float:right; margin-left:20px; color:var(--ms-dim);}
.tour-cs-stats{display:flex; gap:28px; flex-wrap:wrap; font-size:12px; color:var(--ms-dim);}
.tour-cs-stats div{display:flex; flex-direction:column; gap:2px;}
.tour-cs-stats b{color:var(--ms-text); font-size:14px;}
.tour-studio-box{
  max-height:150px; overflow:auto; white-space:pre-wrap; overflow-wrap:anywhere; padding:8px 10px; border-radius:6px;
  border:1px solid transparent; font:12px/1.5 "Segoe UI", var(--font-body); color:var(--ms-dim);
}
.tour-studio-box.editing{border-color:#4F9CF9; background:#1B1B1B; color:var(--ms-text);}
textarea.tour-studio-box{display:block; width:100%; height:170px; resize:vertical; outline:none; font-family:var(--font-mono); font-size:11.5px;}
textarea.tour-studio-box:not(.editing){border-color:transparent; background:none;}
.tour-saved{margin-left:auto; color:#6CCB5F; font-size:12px;}
.tour-studio-head .tour-saved + .tour-btn{display:none;}
.tour-cs-dialog{position:absolute; inset:0; display:grid; place-items:center; padding:16px; background:rgba(0,0,0,.55);}
.tour-cs-dialog[hidden]{display:none;}
.tour-cs-dialog-box{width:min(420px, 100%); padding:18px 20px; border-radius:8px; background:var(--ms-card); border:1px solid var(--ms-line); color:var(--ms-text); display:flex; flex-direction:column; gap:10px; box-shadow:0 18px 40px rgba(0,0,0,.5);}
.tour-cs-dialog-box b{font-size:15px;}
.tour-cs-dialog-box p{margin:0; font-size:12.5px; color:var(--ms-dim); line-height:1.5;}
/* Microsoft 365 Copilot, as it looks (dark): a sidebar (New chat, the agents pinned, the chats before), the chat, and
   its rounded box at the foot; the answer under the agent's name, in a Plain Text box with numbered lines and a copy
   icon at its top right. */
.tour-cp{display:grid; grid-template-columns:200px minmax(0,1fr); color:var(--ms-text);}
.tour-cp-side{display:flex; flex-direction:column; gap:1px; padding:10px 8px; background:#1A1A1A; border-right:1px solid var(--ms-line); min-width:0;}
.tour-cp-brand{font-size:16px; font-weight:600; padding:2px 8px 10px;}
.tour-cp-item{display:flex; align-items:center; gap:9px; width:100%; padding:6px 8px; border-radius:6px; font-size:13px; color:var(--ms-text); white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
.tour-cp-item.quiet{color:var(--ms-dim);}
.tour-cp-item.old{display:block; font-size:12.5px;}
button.tour-cp-item:hover{background:#2A2A2A;}
.tour-cp-item.on{background:#333;}
.tour-cp-label{padding:12px 8px 4px; font-size:11.5px; color:#A8A8A8;}
.tour-cp-ico, .tour-cp-plus{display:inline-grid; place-items:center; color:var(--ms-dim); flex:none;}
.tour-cp-bot{display:inline-grid; place-items:center; flex:none; width:22px; height:22px; border-radius:6px; background:#0F6E7A; color:#E9FBFF;}
.tour-cp-bot.big{width:44px; height:44px; border-radius:12px;}
.tour-cp-bot.big svg{width:28px; height:28px;}
.tour-cp-main{position:relative; display:flex; flex-direction:column; min-width:0; background:#1F1F1F;}
.tour-talk{height:min(360px, 48vh); overflow:auto; padding:16px 18px; display:flex; flex-direction:column; gap:14px;}
.tour-talk-empty{margin:0; color:var(--ms-dim); font-size:17px;}
.tour-cp-hello{margin:auto; display:flex; flex-direction:column; align-items:center; gap:8px; text-align:center; font-size:15px;}
.tour-cp-hello p{margin:0; color:var(--ms-dim); font-size:13px;}
.tour-msg{max-width:88%; padding:12px 16px; border-radius:10px; white-space:pre-wrap; overflow-wrap:anywhere; font-size:12.5px; line-height:1.5;}
.tour-msg.me{align-self:flex-end; background:#2E2E2E; color:var(--ms-text); display:flex; flex-direction:column;}
.tour-msg-text{max-height:96px; overflow:hidden; -webkit-mask-image:linear-gradient(#000 55%, transparent); mask-image:linear-gradient(#000 55%, transparent);}
.tour-cp-more{align-self:center; color:var(--ms-dim); display:inline-grid;}
.tour-cp-reply{display:flex; flex-direction:column; gap:8px; align-self:stretch;}
.tour-cp-who{display:flex; align-items:center; gap:8px; font-size:13.5px;}
.tour-cp-code{border:1px solid var(--ms-line); border-radius:14px; background:#1B1B1B; overflow:hidden;}
.tour-cp-code-head{display:flex; align-items:center; gap:9px; padding:9px 14px; font-size:13px;}
.tour-cp-code-head b{flex:1; font-weight:600;}
.tour-cp-copy{display:inline-grid; place-items:center; width:28px; height:28px; border-radius:6px; color:var(--ms-dim);}
.tour-cp-copy:hover{background:#2E2E2E; color:var(--ms-text);}
.tour-cp-copy.done{color:#6CCB5F;}
.tour-cp-copied{font-size:11.5px; color:#6CCB5F;}
.tour-cp-dots{color:var(--ms-dim); letter-spacing:1px;}
.tour-cp-lines{list-style:none; counter-reset:ln; margin:0; padding:4px 14px 12px 0; font:11.5px/1.6 var(--font-mono); color:var(--ms-text);}
.tour-cp-lines li{counter-increment:ln; display:grid; grid-template-columns:40px minmax(0,1fr); white-space:pre-wrap; overflow-wrap:anywhere; min-height:1.6em;}
.tour-cp-lines li::before{content:counter(ln); text-align:right; padding-right:14px; color:#8A8A8A; user-select:none;}
.tour-cp-compose{padding:4px 18px 8px;}
.tour-cp-box{display:flex; align-items:center; gap:10px; padding:8px 12px 8px 16px; border:1px solid #4A4A4A; border-radius:26px; background:#262626;}
.tour-talk-in{
  flex:1; height:40px; resize:none; overflow:auto; padding:9px 2px; border:0; outline:none; background:transparent;
  color:var(--ms-text); font:13px/1.45 "Segoe UI", var(--font-body);
}
.tour-talk-in::placeholder{color:#A8A8A8; font-size:13.5px;}
.tour-cp-send{display:inline-grid; place-items:center; width:32px; height:32px; border-radius:50%; color:var(--ms-dim); flex:none;}
.tour-cp-send:hover{background:#333; color:var(--ms-text);}
.tour-cp-note{margin:6px 0 0; text-align:center; font-size:11px; color:#A8A8A8;}
@media (max-width:640px){
  .tour-win-body{grid-template-columns:1fr;}
  .tour-nav{flex-direction:row; flex-wrap:wrap; border-right:0; border-bottom:1px solid var(--border-soft);}
  .tour-file{grid-template-columns:1fr 60px;}
  .tour-file > span:nth-child(2){display:none;}
  .tour-win.many .tour-place{width:auto;}          /* several files: the places in a row, more of the list in sight */
  body.tour-room{padding-bottom:var(--tour-room, 170px);}   /* /daily, /monthly (tour.js room, as tall as the bar): a step's foot brought above it */
  /* a phone: Copilot's sidebar a strip along the top (New chat and the agents), Copilot Studio's rail and tabs left out */
  .tour-cp{grid-template-columns:1fr;}
  .tour-cp-side{flex-direction:row; flex-wrap:wrap; gap:4px; border-right:0; border-bottom:1px solid var(--ms-line);}
  .tour-cp-brand, .tour-cp-label, .tour-cp-item.quiet{display:none;}
  .tour-cp-side .tour-cp-item{width:auto; max-width:100%;}
  .tour-talk{height:min(300px, 42vh);}
  .tour-cs{grid-template-columns:1fr;}
  .tour-cs-rail, .tour-cs-tabs span:not(.on){display:none;}
  .tour-cs-right{margin-left:0;}
}
.tour-lit{outline:2px solid var(--green); outline-offset:3px; border-radius:6px;}   /* held on (Copilot's answer as it is written) */
.tour-on{outline:2px solid var(--green) !important; outline-offset:3px; border-radius:6px; animation:tour-pulse 1.4s ease-out;}
@keyframes tour-pulse{from{outline-offset:10px; outline-color:transparent} 30%{outline-offset:3px; outline-color:var(--green)}}
/* a cell of a sheet pointed at: square, as a cell, and over the cells after it, which would hide its outline */
.xl .c.tour-on, .xl .c.tour-hold{z-index:3; border-radius:0;}
/* a table row pointed at: outlined inside its own edges, not over the rows and header round it */
tr.tour-on, tr.tour-hold, tr.tour-lit{outline-offset:-2px; border-radius:4px;}
tr.tour-on{animation-name:tour-pulse-row;}
/* A press: the arrow dips toward its tip (scaled about it, so the tip stays on what is pressed) and springs back. */
.tour-pointer svg{display:block; transform-origin:4px 3px;}
.tour-pointer.press svg{animation:tour-press .26s ease-out;}
@keyframes tour-press{35%{scale:.8; translate:0 1.5px; filter:brightness(1.3)}}

/* Build, when the walkthrough leaves the page at it: green, glowing, and two strokes going round its edge, one from
   the top left and one from the bottom right (the rect's pathLength is 100: two dashes 50 apart), until pressed.
   With reduced motion too, as the walkthrough. */
.btn.primary.build-glow{position:relative; background:var(--green); box-shadow:0 0 0 1px var(--green-dim), 0 0 22px rgba(155,225,93,.4);}
.btn.primary.build-glow:hover:not(:disabled){background:#B8EE88;}
.build-trace{position:absolute; left:-3px; top:-3px; width:calc(100% + 6px); height:calc(100% + 6px); overflow:visible; pointer-events:none;}
.build-trace rect{
  fill:none; stroke:var(--green); stroke-width:2; stroke-linecap:round; stroke-dasharray:18 32;
  filter:drop-shadow(0 0 4px var(--green)); animation:build-trace 2.2s ease-in-out infinite;
}
@keyframes build-trace{from{stroke-dashoffset:0} to{stroke-dashoffset:-50}}
.btn.primary.build-glow{animation:build-breathe 1.8s ease-in-out infinite alternate;}
@keyframes build-breathe{from{box-shadow:0 0 0 1px var(--green-dim), 0 0 10px rgba(155,225,93,.25)} to{box-shadow:0 0 0 1px var(--green), 0 0 28px rgba(155,225,93,.55)}}
