/* Winston V3 — first-run palette hint banner (#125).
 * Sits just above the last-action-footer; dismisses on first palette
 * open or via the × button. Desktop-only (mounted conditional in JS). */

.palette-hint {
  position: fixed;
  bottom: calc(var(--space-5) + 22px); /* above the 22px-tall last-action-footer */
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 6px var(--space-3) 6px var(--space-4);
  background: var(--ai-soft);
  color: var(--ink);
  border: 1px solid var(--ai-line);
  border-radius: var(--radius-full);
  font-size: var(--type-xs);
  letter-spacing: var(--tracking-snug);
  box-shadow: var(--shadow-sm);
  z-index: var(--z-sticky);
  pointer-events: auto;
  white-space: nowrap;
  max-width: calc(100vw - var(--space-6));
}

.palette-hint-text { color: var(--ink-2); }
.palette-hint-text kbd {
  display: inline-block;
  padding: 1px 5px;
  margin: 0 2px;
  font-family: var(--font-mono);
  font-size: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  color: var(--ink);
}

.palette-hint-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  border-radius: var(--radius-xs);
}
.palette-hint-close:hover { background: var(--surface); color: var(--ink); }

/* Desktop-only — mounted conditional in JS, but defensive CSS in case
   the matchMedia check is bypassed (e.g. an iPad in landscape that
   crosses 1024px). */
@media (max-width: 1023px) {
  .palette-hint { display: none; }
}
