/* Show me how: the button, its panel, and the guide (pointer, click-here outline, note card, step bar).
   Colors only from look/look.css, so light (Paper Desk) and dark (Night Studio) both work. */

bb-show-me-how { display: inline-block; position: relative; font-family: var(--font); }
bb-show-me-how.smh-inline { display: block; }

/* the button in the top bar */
.smh-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: var(--radius-md); background: var(--panel); color: var(--ink);
  font: inherit; font-size: 14px; font-weight: var(--weight-heavy); cursor: pointer; white-space: nowrap;
}
.smh-btn:hover { border-color: var(--accent); }
.smh-btn.on { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--on-accent-strong); }
.smh-qm { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid currentColor; font-size: 12px; line-height: 1; }

/* the panel: a box under the button, on the right */
.smh-panel {
  position: fixed; right: 16px; top: 76px; z-index: 70; width: min(420px, calc(100vw - 32px));
  max-height: calc(100vh - 96px); overflow: auto; display: grid; gap: 12px; padding: 18px 20px 20px;
  border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--panel); color: var(--ink);
  box-shadow: var(--shadow-pop); text-align: left; white-space: normal;
}
.smh-inline .smh-panel { position: static; width: auto; max-width: 460px; max-height: none; overflow: visible; box-shadow: var(--shadow-card); }
.smh-head { display: flex; align-items: center; gap: 10px; }
.smh-head h2 { font-size: 18px; font-weight: var(--weight-heavy); }
.smh-x { margin-left: auto; color: var(--ink-soft); }
.smh-ask { display: grid; gap: 10px; }
.smh-in, .smh-search {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--accent); border-radius: var(--radius-lg);
  background: var(--raised); color: var(--ink); font: inherit; font-size: 15px;
}
.smh-search { border-color: var(--line); }
.smh-in:disabled { color: var(--ink-soft); }
.smh-in::placeholder, .smh-search::placeholder { color: var(--ink-soft); }
.smh-big { min-height: 48px !important; padding: 0 22px !important; font-size: 16px !important; }
.smh-ai { display: grid; gap: 8px; padding: 12px 14px; border: 1.5px dashed var(--accent); border-radius: var(--radius-lg); }
.smh-sorry { border-color: var(--line); }
.smh-tag { font-size: var(--text-xs); font-weight: var(--weight-heavy); letter-spacing: var(--caps-spacing); text-transform: uppercase; color: var(--ink-faint); }
.smh-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.smh-steps b, .smh-note b, .smh-what b { font-weight: var(--weight-heavy); }
.smh-fine { font-size: 13px; color: var(--ink-soft); }
.smh-lead { font-size: 14px; color: var(--ink-soft); }
.smh-go { gap: 8px; }
.smh-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.smh-guide {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 14px; text-align: left;
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--raised); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: var(--weight-strong); cursor: pointer;
}
.smh-guide:hover { border-color: var(--accent); }
.smh-gt { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.smh-gn { flex: none; font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.smh-empty { font-size: 13px; color: var(--ink-soft); }
.smh-busy { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-weight: 600; }
.smh-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: smh-spin .8s linear infinite; }
@keyframes smh-spin { to { transform: rotate(360deg); } }

/* the guide: it only draws, so clicks go through to the page under it */
.smh-layer { position: fixed; left: 0; top: 0; width: 0; height: 0; overflow: visible; z-index: 2147483000; pointer-events: none; font-family: var(--font); }
.smh-ring {
  position: fixed; border: 3px solid var(--accent); border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 28%, transparent), 0 0 24px color-mix(in srgb, var(--accent) 50%, transparent);
  transition: left .45s ease, top .45s ease, width .45s ease, height .45s ease;
}
.smh-ptr { position: fixed; left: 0; top: 0; width: 34px; height: 40px; pointer-events: none; transition: transform .6s cubic-bezier(.2, .7, .2, 1); filter: drop-shadow(var(--shadow-paper)); }
.smh-ptr.smh-jump { transition: none; }
.smh-ptr svg { display: block; }
.smh-arrow-fill { fill: var(--accent); stroke: var(--panel); }
.smh-note {
  position: fixed; max-width: 340px; padding: 12px 16px; border-radius: var(--radius-lg); pointer-events: none;
  background: var(--ink); color: var(--panel); font-size: 15px; font-weight: 600; line-height: 1.4; box-shadow: var(--shadow-float);
}
.smh-still .smh-ptr, .smh-still .smh-ring { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .smh-ptr, .smh-ring { transition: none !important; }
  .smh-spin { animation: none; }
}

/* the step bar at the bottom: "Step 1 of 3", the words, Back a step and Stop */
.smh-bar {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); width: min(760px, calc(100vw - 32px));
  display: flex; align-items: center; gap: 12px 16px; padding: 12px 14px 12px 20px; pointer-events: auto;
  border: 1.5px solid var(--accent); border-radius: var(--radius-xl); background: var(--panel); color: var(--ink);
  box-shadow: var(--shadow-pop); font-size: 15px;
}
/* a button right under the bar (a phone's tabs): the bar steps up, so the arrow fits between them */
.smh-bar.smh-up { margin-bottom: 48px; }
.smh-bar:focus { outline: none; }
.smh-bar:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.smh-stepn { font-weight: var(--weight-heavy); white-space: nowrap; }
.smh-dots { display: flex; gap: 6px; flex: none; }
.smh-dots i { width: 26px; height: 6px; border-radius: 3px; background: var(--line); }
.smh-dots i.on { background: var(--accent); }
.smh-what { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.smh-what .btn { margin-left: 8px; }
.smh-miss { color: var(--ink); }
.smh-bar-btns { display: flex; gap: 8px; flex: none; }
@media (max-width: 600px) {
  .smh-btn { min-height: 40px; }
  .smh-panel { left: 16px; right: 16px; width: auto; }
  .smh-bar { flex-wrap: wrap; bottom: 12px; padding: 12px 14px; }
  .smh-what { flex-basis: 100%; order: 3; }
  .smh-bar-btns { margin-left: auto; order: 4; } /* on a phone: the step, then its words, then the buttons */
  .smh-bar-btns .btn { min-height: 44px; }
  .smh-note { font-size: 14px; }
}
