/* ForgeMoves states: loading skeletons, calm error and empty messages, and the one estimate badge.
   Rules: skeletons match the final layout so nothing jumps; they never shimmer under reduced motion;
   they are hidden from assistive tech (the container carries aria-busy instead). Tokens come from styles.css. */

/* ---------- Skeleton ---------- */
.sk { display: inline-block; position: relative; overflow: hidden; width: 6ch; max-width: 100%; height: .9em; vertical-align: -.08em; background: var(--line); border-radius: 2px; }
.sk-s { width: 3.5ch; }
.sk-m { width: 8ch; }
.sk-l { width: 14ch; }
.sk-xl { width: min(22ch, 100%); }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); animation: sk-sheen 1.8s ease-in-out infinite; }
@keyframes sk-sheen { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) {
  .sk::after { animation: none; content: none; }
}
.tk-sk { display: inline-flex; align-items: center; gap: 10px; padding: 0 22px; }
.mkt-card .mkt-v .sk { width: 7ch; height: 1em; }
.mkt-card .mkt-c .sk { width: 5ch; height: .75em; }

/* ---------- Plain fallback words where a value is missing ---------- */
.state-empty { color: var(--muted); font-weight: 400; }

/* ---------- Error and empty messages: one short sentence, then the next step ---------- */
.state-msg { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 12px 0; padding: 12px 14px; border: 1px solid var(--line2); border-left: 3px solid var(--hot2); background: var(--bg2); color: var(--text); font: .9375rem/1.5 var(--sans); }
.state-msg[hidden] { display: none; }
.state-msg p { margin: 0; flex: 1 1 16rem; }
.state-msg a { color: var(--hot2); text-underline-offset: 2px; }
.state-msg button { min-height: 44px; padding: 8px 16px; background: none; border: 1px solid var(--line2); border-radius: var(--r-sm, 2px); color: var(--text); cursor: pointer; font: 600 1rem var(--sans); }
.state-msg button:hover { border-color: var(--hot2); }
.state-msg.is-quiet { border-left-color: var(--line2); color: var(--muted); }

/* ---------- The one estimate badge ----------
   Short, next to a figure:   <span class="est-badge">Estimate</span>
   Once per card or page:     <span class="est-badge"><b>Estimate</b><span class="est-why"> · Confirmed by a person before anything is charged</span></span> */
.est-badge { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 2px; padding: 2px 7px; border: 1px dashed var(--hot2); border-radius: 2px; color: var(--hot2); font: 600 .6875rem/1.45 var(--mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; white-space: nowrap; }
.est-badge b { font-weight: 700; }
.est-badge .est-why { color: var(--muted); font-weight: 400; letter-spacing: .02em; text-transform: none; white-space: normal; }
.price .est-badge, .art-spec .est-badge { margin-left: 8px; }
.qbar span.est-badge { display: inline-flex; justify-self: start; font-size: .625rem; letter-spacing: .08em; color: var(--hot2); }
.mkt > .state-msg { grid-column: 1 / -1; margin: 0; }
.est-line { margin: 10px 0; }
.ord-skel { padding-bottom: 14px; }
.ord-skel > p { margin: 14px 16px 0; }
@media print {
  .sk { display: none; }
  .est-badge { border-color: #000; color: #000; }
  .est-badge .est-why { color: #000; }
}
