/* Frosted guide surface. Text, buttons and focus indicators stay fully opaque. */
#tour .guide-card {
  width: 384px;
  max-width: calc(100% - 28px);
  padding: 18px 20px;
  box-sizing: border-box;
  height: auto;
  max-height: none;
  overflow: visible;
  border: 1px solid rgb(255 255 255 / 70%);
  border-radius: 19px;
  background: linear-gradient(145deg, rgb(255 255 255 / 95%) 0%, rgb(248 250 252 / 91%) 80%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 45%), 0 0 0 1px rgb(24 44 67 / 13%), 0 8px 28px -10px rgb(21 40 62 / 20%);
  color: #192a3a;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  #tour .guide-card {
    background: linear-gradient(135deg, rgb(255 255 255 / 69%), rgb(250 252 255 / 60%) 63%, rgb(241 246 250 / 64%));
    -webkit-backdrop-filter: blur(7px) saturate(105%);
    backdrop-filter: blur(7px) saturate(105%);
  }
}
#tour .guide-head { margin-bottom: 10px; }
#tour .guide-head .icon-btn { color: #415165; }
#tour .guide-brand { color: #203142; font-size: 11px; letter-spacing: .06em; }
#tour .guide-card h3 { font-size: 21px; line-height: 1.22; margin: 0 0 6px; }
#tour .guide-card p { font-size: 14px; line-height: 1.5; color: #1e3041; margin: 0 0 8px; }
#tour .guide-card .tech-link { font-size: 12px; line-height: 1.5; text-align: left; color: #203142; }
#tour .guide-tech { font-size: 12px; line-height: 1.55; }
#tour .guide-tech strong, #tour .guide-step-count { font-size: 11px; }
#tour .guide-step-count {
  display: inline-flex; align-items: center; gap: 4px; margin: 0;
  padding: 4px 8px; border: 1px solid rgb(52 73 89 / 17%); border-radius: 99px;
  background: rgb(255 255 255 / 55%); color: #273b4b; font-variant-numeric: tabular-nums;
  font-weight: 600; white-space: nowrap;
}
#tour .guide-body { min-width: 0; }
#tour .guide-tech { background: rgb(255 255 255 / 63%); color: #263747; }
#tour .guide-card .tech-link { display: inline-flex; align-items: center; gap: 6px; }
#tour .tech-link span { font-size: 1.1em; font-weight: 650; }
#tour .guide-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#tour .guide-navigation { justify-content: flex-end; margin-inline-start: auto; }
#tour .guide-navigation .btn.orange { background: #b64a0b; color: white; }
#tour .guide-navigation .btn.orange:hover { background: #9e4009; }
#tour .guide-navigation .btn { font-size: 12px; min-height: 38px; padding: 7px 12px; }
#tour .guide-card :is(.btn,.tech-link),#tour .guide-launch{text-transform:capitalize}
body:is([data-page="operations"],[data-page="insights"]) .tour-ring{transition:none}
@media (max-width: 760px) {
  #tour .guide-card { left: 14px !important; top: auto !important; right: auto !important; bottom: calc(var(--assist-bottom, 14px) + 66px) !important; }
}
@media (max-width: 420px), (max-height: 640px) {
  #tour .guide-card { padding: 13px 15px; border-radius: 16px; }
  #tour .guide-head { margin-bottom: 6px; }
  #tour .guide-card h3 { font-size: 19px; }
  #tour .guide-card p { line-height: 1.42; }
}
@media (max-width:420px), (min-width:761px) and (max-height:480px) {
  #tour .guide-card:has(.mm-guide-tabs) .guide-head { position:absolute; top:14px; right:14px; }
  #tour .guide-card:has(.mm-guide-tabs) .guide-brand { display:none; }
  #tour .guide-card .mm-guide-tabs { margin-right:31px; }
  #tour .guide-card:has(.guide-tech) .guide-body>p { display:none; }
}
#tour .guide-small-copy { display:none; }
@media (max-width:350px) {
  #tour .guide-small-copy { display:inline; }
  #tour .mm-guide .guide-body:has(.tech-link)>p { display:none; }
}
@media (max-height: 640px) {
  #tour .guide-card:has(.guide-tech) { padding: 10px 14px; }
  #tour .guide-card:has(.guide-tech) .mm-guide-tabs { margin-bottom: 6px; }
  #tour .guide-tech { margin: 4px 0; padding: 6px 9px; }
  #tour .guide-card:has(.guide-tech) .guide-footer { margin-top: 5px; }

}
/* A shallow desktop window has room to wrap the extended explanation more widely. */
@media (min-width: 761px) and (max-height: 480px) {
  #tour .guide-card:has(.guide-tech) { width: 448px; }
}
@media (prefers-reduced-transparency: reduce), (forced-colors: active) {
  #tour .guide-card { background: Canvas; color: CanvasText; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Keep real keyboard focus visible inside the control and the tour stroke outside. */
body:has(#tour .guide-card) #app :is(button,a[href],summary,input,select,textarea,[tabindex]):focus-visible {
  outline: 2px solid var(--guide-focus, #244d70);
  outline-offset: -3px;
}
body:has(#tour .guide-card) .portal-shell[data-theme="dark"] { --guide-focus: #9ed2ff; }
#tour .tour-ring { box-sizing: border-box; pointer-events: none; transition: none; }
@media (forced-colors: active) {
  body:has(#tour .guide-card) #app :focus-visible { --guide-focus: Highlight; }
}
