/* Forged Solutions · order W17: the RevivalOS example "A booking that pays", plus the small heading above
   working features ("Working today on demo data") on the wheel card and in the sheet. Showroom black, brass. */
.caps__h { margin: 8px 0 6px; font: 500 13px/1.3 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.caps__h + .caps { margin-top: 0; }

.xr { --xr-b: #d1ad6a; --xr-g: #6ebe8c; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(280px, calc(50% - 8px))), 1fr)); align-items: start; }
.xr [hidden] { display: none !important; }
.xr__cal, .xr__claim { min-width: 0; padding: 16px; border: 1px solid rgba(209,173,106,.22); border-radius: 18px;
  background: radial-gradient(130% 60% at 50% 0%, #1b1c21, #0b0c0f 65%); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.xr__hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.xr__hd b, .xr__ch { font: 600 16px/1.3 var(--f-body); color: var(--ink, #f3eee4); }
.xr__hd span, .xr__ch span, .xr__key { font: 500 13px/1.3 var(--f-mono); letter-spacing: .05em; color: var(--muted); }
/* The sheet gives this example the full width: no glyph column, so the calendar and the claim sit side by side. */
.sheet__body:has(.xr) { grid-template-columns: 1fr; }
.sheet__body:has(.xr) > .sheet__media { display: none; }
/* Steps read as progress tabs (an underline), never as buttons. */
.xr__steps { display: flex; flex-wrap: nowrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
.xr__steps li { flex: 1 1 0; min-width: 0; padding: 6px 4px; border-bottom: 2px solid var(--line-2); text-align: center; font: 500 13px/1.2 var(--f-body); color: var(--muted); transition: color .3s, border-color .3s; }
.xr__steps li.is-on { border-bottom-color: var(--xr-b); color: var(--xr-b); }
.xr__ss { display: none; }
@media (max-width: 480px) {
  .xr__steps { gap: 4px; }
  .xr__sl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .xr__ss { display: inline; }
}
.xr__st { min-height: 3em; margin: 12px 0; font: 400 16px/1.45 var(--f-body); color: var(--ink-2); }
.xr__st.is-no { color: #ffa47a; }
.xr__st.is-ok { color: #a6dfb9; }
/* Day-major DOM: five day columns on most screens; under 381px each day becomes a row of four 44px times. */
.xr__grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-template-rows: auto repeat(4, minmax(44px, auto)); grid-auto-flow: column; gap: 6px; }
@media (max-width: 380px) {
  .xr__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; }
  .xr__grid .xr__day { grid-column: 1 / -1; padding: 6px 0 0; text-align: left; }
}
.xr__day { padding-bottom: 2px; text-align: center; font: 500 13px/1 var(--f-mono); letter-spacing: .08em; color: var(--muted); }
.xr__slot { min-width: 0; min-height: 44px; padding: 0 2px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,.03);
  color: var(--ink-2); font: 500 13px/1 var(--f-body); font-variant-numeric: tabular-nums; cursor: pointer;
  transition: background .25s, border-color .25s, color .25s, box-shadow .25s; }
.xr__slot:hover { border-color: var(--xr-b); }
.xr__slot:focus-visible { outline: 2px solid var(--xr-b); outline-offset: 2px; }
.xr__slot.is-bk { background: repeating-linear-gradient(135deg, rgba(255,255,255,.08) 0 5px, rgba(255,255,255,.02) 5px 10px); color: var(--muted); }
.xr__slot.is-try { box-shadow: 0 0 0 2px rgba(209,173,106,.6); color: var(--ink, #f3eee4); }
.xr__slot.is-hint { border-color: var(--xr-b); box-shadow: 0 0 0 3px rgba(209,173,106,.35); color: var(--xr-b); animation: xr-pulse 1.2s ease-in-out 3; }
.xr__slot.is-me { border-color: #ff6a2b; background: rgba(255,106,43,.18); color: #ffd3bd; }
.xr__slot.is-me.is-ok { border-color: var(--xr-g); background: rgba(110,190,140,.2); color: #d0f2dc; }
.xr__slot.is-shake { animation: xr-shake .35s ease; }
@keyframes xr-pulse { 50% { box-shadow: 0 0 0 6px rgba(209,173,106,.12); } }
@keyframes xr-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.xr__key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 12px 0 0; }
.xr__key span { display: inline-flex; align-items: center; gap: 6px; }
.xr__sw { width: 14px; height: 14px; border: 1px solid var(--line-2); border-radius: 4px; background: rgba(255,255,255,.03); }
.xr__sw.is-bk { background: repeating-linear-gradient(135deg, rgba(255,255,255,.2) 0 3px, transparent 3px 6px); }
.xr__sw.is-me { border-color: #ff6a2b; background: rgba(255,106,43,.3); }
.xr__in { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font: 500 15px/1.35 var(--f-body); color: var(--ink-2); }
.xr__tick { position: relative; flex: none; width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 50%; transition: background .3s, border-color .3s; }
.xr__in.is-done .xr__tick { border-color: var(--xr-g); background: var(--xr-g); }
.xr__in.is-done .xr__tick::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #0b0c0f; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.xr__ch { display: grid; gap: 4px; margin: 0; }
.xr__trk { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 14px 0; padding: 0; list-style: none; }
.xr__trk li { padding: 10px 4px; border: 1px solid var(--line-2); border-radius: 10px; text-align: center; font: 500 13px/1.2 var(--f-body); color: var(--muted); transition: background .3s, color .3s, border-color .3s; }
.xr__trk li.is-on { border-color: var(--xr-b); background: rgba(209,173,106,.1); color: var(--xr-b); }
.xr__trk li.is-on:last-child { border-color: var(--xr-g); background: rgba(110,190,140,.15); color: #d0f2dc; }
.xr__claim .xbig { padding-top: 12px; border-top: 1px solid rgba(209,173,106,.18); }
.xr__note { margin: 10px 0 0; font: 400 16px/1.4 var(--f-body); color: var(--ink-2); }
.xr__post { color: #a6dfb9; }
.xr__claim .xmp__lnk { margin-top: 12px; }
.xr__letter { margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: #efe8d6; color: #1c1912; font: 400 15px/1.45 var(--f-body); }
.xr__letter p { margin: 0; }
.xr__letter p + p { margin-top: 6px; }
.xr__lh { font: 600 13px/1.3 var(--f-mono) !important; letter-spacing: .1em; text-transform: uppercase; color: #6b5a33; }
.xr__sec { display: flex; align-items: flex-start; gap: 10px; grid-column: 1 / -1; margin: 0; padding: 12px 14px; border: 1px dashed rgba(209,173,106,.32); border-radius: 14px;
  font: 400 16px/1.45 var(--f-body); color: var(--ink-2); }
.xr__sec svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--xr-b); }
.xr__re { grid-column: 1 / -1; justify-self: start; }
@media (max-width: 760px) {
  .xr__cal, .xr__claim { padding: 12px; }
  .xr__grid { gap: 4px; }
  .xr__st, .xr__note, .xr__sec { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  .xr__slot, .xr__steps li, .xr__trk li, .xr__tick { transition: none; animation: none !important; }
}
