/* LumensOS: shared/tour.css. The dim page, the lit area and the card of shared/tour.js.
   Hosts restyle it through the --sct-* custom properties (the extension panel and the app each set their own). */
.sct-tour {
  --sct-dim: rgba(8, 10, 8, .72);
  --sct-ring: #4f8a1c;
  --sct-bg: #ffffff;
  --sct-ink: #161a14;
  --sct-ink-2: #4b5347;
  --sct-line: #dde2d8;
  --sct-accent: #3f7a12;
  --sct-accent-ink: #ffffff;
  --sct-soft: #eef3e8;
  --sct-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --sct-radius: 14px;
  position: fixed; inset: 0; z-index: 2147483000;
  font: 13px/1.45 var(--sct-font); color: var(--sct-ink);
  -webkit-font-smoothing: antialiased;
  animation: sct-fade .2s ease-out;
}
.sct-tour[data-theme="dark"] {
  --sct-dim: rgba(0, 0, 0, .74);
  --sct-ring: #9fe870;
  --sct-bg: #1f221e;
  --sct-ink: #f1f3ef;
  --sct-ink-2: #c0c6bd;
  --sct-line: #3b4038;
  --sct-accent: #9fe870;
  --sct-accent-ink: #14200f;
  --sct-soft: #2b2f2a;
}
.sct-tour.sct-out { opacity: 0; transition: opacity .15s ease-in; pointer-events: none; }
.sct-tour *, .sct-tour *::before, .sct-tour *::after { box-sizing: border-box; }

/* the lit area: a hole made by a very large shadow, so the dim and the highlight move as one piece */
.sct-ring {
  position: fixed; left: 0; top: 0; width: 0; height: 0;
  border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 2px var(--sct-ring), 0 0 0 9999px var(--sct-dim);
  transition: left .32s cubic-bezier(.2, .8, .2, 1), top .32s cubic-bezier(.2, .8, .2, 1), width .32s cubic-bezier(.2, .8, .2, 1), height .32s cubic-bezier(.2, .8, .2, 1);
}
.sct-tour[data-empty] .sct-ring { box-shadow: 0 0 0 9999px var(--sct-dim); }
.sct-ring::after {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid var(--sct-ring);
  animation: sct-pulse 2.2s ease-out infinite; pointer-events: none;
}
.sct-tour[data-empty] .sct-ring::after { display: none; }

.sct-pop {
  position: fixed; left: 0; top: 0; max-width: calc(100vw - 20px);
  background: var(--sct-bg); color: var(--sct-ink);
  border: 1px solid var(--sct-line); border-radius: var(--sct-radius);
  padding: 14px 16px 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .35), 0 2px 8px rgba(0, 0, 0, .2);
  transition: left .32s cubic-bezier(.2, .8, .2, 1), top .32s cubic-bezier(.2, .8, .2, 1);
  outline: none;
}
.sct-pop.sct-in { animation: sct-rise .24s ease-out; }
.sct-pop.sct-nudge { animation: sct-nudge .3s ease-in-out; }

.sct-arrow { position: absolute; width: 12px; height: 12px; background: var(--sct-bg); border: 1px solid var(--sct-line); transform: rotate(45deg); display: none; }
.sct-pop[data-side="bottom"] .sct-arrow { display: block; top: -7px; margin-left: -6px; border-right: 0; border-bottom: 0; }
.sct-pop[data-side="top"] .sct-arrow { display: block; bottom: -7px; margin-left: -6px; border-left: 0; border-top: 0; }
.sct-pop[data-side="right"] .sct-arrow { display: block; left: -7px; margin-top: -6px; border-right: 0; border-top: 0; }
.sct-pop[data-side="left"] .sct-arrow { display: block; right: -7px; margin-top: -6px; border-left: 0; border-bottom: 0; }

.sct-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 -4px 6px 0; }
.sct-count { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--sct-ink-2); }
.sct-x { all: unset; box-sizing: border-box; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 20px; line-height: 1; color: var(--sct-ink-2); cursor: pointer; }
.sct-x:hover { background: var(--sct-soft); color: var(--sct-ink); }
.sct-title { margin: 0 0 6px; font-size: 15.5px; line-height: 1.25; font-weight: 650; color: var(--sct-ink); }
.sct-body p { margin: 0 0 6px; color: var(--sct-ink-2); font-size: 13px; line-height: 1.45; }
.sct-body p:last-child { margin-bottom: 0; }
.sct-body b, .sct-body strong { color: var(--sct-ink); font-weight: 650; }

.sct-bar { display: flex; gap: 3px; margin: 12px 0 10px; }
.sct-bar i { flex: 1; height: 3px; border-radius: 2px; background: var(--sct-line); transition: background .2s; }
.sct-bar i.done { background: var(--sct-accent); opacity: .55; }
.sct-bar i.now { background: var(--sct-accent); }

.sct-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sct-nav { display: flex; gap: 6px; margin-left: auto; }
.sct-btn, .sct-skip { all: unset; box-sizing: border-box; cursor: pointer; font: inherit; font-weight: 600; }
.sct-btn { min-height: 32px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px; font-size: 13px; }
.sct-primary { background: var(--sct-accent); color: var(--sct-accent-ink); }
.sct-primary:hover { filter: brightness(1.08); }
.sct-ghost { color: var(--sct-ink); border: 1px solid var(--sct-line); }
.sct-ghost:hover { background: var(--sct-soft); }
.sct-action { width: 100%; margin-top: 10px; border: 1px solid var(--sct-accent); color: var(--sct-accent); }
.sct-action:hover { background: var(--sct-soft); }
.sct-skip { font-size: 12px; font-weight: 500; color: var(--sct-ink-2); text-decoration: underline; text-underline-offset: 2px; padding: 6px 2px; }
.sct-skip:hover { color: var(--sct-ink); }
.sct-btn:focus-visible, .sct-skip:focus-visible, .sct-x:focus-visible { outline: 2px solid var(--sct-ring); outline-offset: 2px; }
[hidden].sct-btn, [hidden].sct-skip, .sct-tour [hidden] { display: none !important; }

.sct-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@keyframes sct-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes sct-rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@keyframes sct-pulse { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.06); } }
@keyframes sct-nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-4px); } 60% { transform: translateX(4px); } }

@media (prefers-reduced-motion: reduce) {
  .sct-tour, .sct-ring, .sct-pop, .sct-bar i { animation: none !important; transition: none !important; }
  .sct-ring::after { display: none; }
}
@media (forced-colors: active) {
  .sct-ring { box-shadow: 0 0 0 2px Highlight, 0 0 0 9999px rgba(0, 0, 0, .6); }
  .sct-pop { border-color: CanvasText; }
}
