/* src/shared/first-run.css — the Dashboard's first-run tour (first-run.js).
 *
 * A card, not a modal: the page stays usable under it, so a reader can try
 * each thing it points at. Bottom left on a wide screen (the watchlist opens
 * on the right), and full width over the tab bar on a phone (docs/MOBILE.md
 * section 2: what pops up at the bottom sits above the tab bar). The ring
 * marks the control a step is about and never takes a click.
 */
.tmt-tour {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 960;              /* above the watchlist (900), below sheets (1100) and Spotlight (1150) */
  width: min(360px, calc(100vw - 40px));
  box-sizing: border-box;
  padding: 18px 18px 14px;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--rule);
  border-radius: 14px;
  box-shadow: var(--shadow-floating);
  font-family: var(--font-sans);
}
.tmt-tour[hidden] { display: none; }
.tmt-tour__step {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  margin: 0 32px 6px 0;
  font-variant-numeric: tabular-nums;
}
.tmt-tour__title {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 32px 8px 0;
  color: var(--ink);
}
.tmt-tour__title:focus, .tmt-tour__title:focus-visible { outline: none; box-shadow: none; }
.tmt-tour__body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 12px;
}
.tmt-tour__body kbd {
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 1px 5px;
  border: 1px solid var(--rule-strong);
  border-radius: 4px;
  background: var(--paper);
}
.tmt-tour__sample {
  margin: 0 0 12px;
  padding: 10px 12px;
  border: 1px dashed var(--rule-strong);
  border-radius: 10px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.tmt-tour__sample[hidden] { display: none; }
.tmt-tour__sample b { color: var(--ink); }
.tmt-tour__row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tmt-tour__spacer { flex: 1 1 auto; }
.tmt-tour__btn {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid var(--rule-strong);
  background: var(--card);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tmt-tour__btn--primary { background: var(--brand); border-color: var(--brand); color: var(--text-on-ink); }
.tmt-tour__btn--quiet { border-color: transparent; background: transparent; color: var(--ink-3); padding: 0 6px; }
.tmt-tour__btn:focus-visible { outline: 2px solid var(--cool); outline-offset: 2px; }
.tmt-tour__btn[disabled] { opacity: 0.6; cursor: default; }
.tmt-tour__close {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  color: var(--ink-3);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  border-radius: 8px;
}
.tmt-tour__close:focus-visible { outline: 2px solid var(--cool); }
.tmt-tour__dots { display: inline-flex; gap: 5px; margin-right: 4px; }
.tmt-tour__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--rule-strong); }
.tmt-tour__dots i.is-on { background: var(--brand); }

.tmt-tour-ring {
  position: fixed;
  z-index: 959;
  pointer-events: none;
  border: 2px solid var(--brand);
  border-radius: 10px;
  box-shadow: 0 0 0 4px var(--brand-bg);
  transition: top var(--dur-fast, 120ms), left var(--dur-fast, 120ms), width var(--dur-fast, 120ms), height var(--dur-fast, 120ms);
}
.tmt-tour-ring[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .tmt-tour-ring { transition: none; }
}

/* A phone: full width, resting on the tab bar, 44px targets. */
@media (max-width: 720px) {
  .tmt-tour {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(var(--tmt-bottom-reserve, 0px) + 8px);
    padding: 16px 16px 12px;
    max-height: calc(100vh - var(--tmt-bottom-reserve, 0px) - 96px);
    overflow-y: auto;
  }
  .tmt-tour__btn { min-height: 44px; font-size: 15px; }
  .tmt-tour__close { width: 44px; height: 44px; top: 2px; right: 2px; }
  .tmt-tour__body { font-size: 15px; }
}
