/* The six drawn app screens ("glimpses") from the Spotlight Left Nav prototype, ported from
   templates/10-spotlight-left-nav/index.html. Markup: catalog/templates/catalog/glimpses/<key>.html.
   Every rule is scoped under .gx so it can sit next to admin.css or the public site's CSS.
   Needs the prototype's tokens (--g-bg --g-surface --g-line --g-bar --g-text --g-muted --accent --accent-soft
   --accent-ink --ink --sans --ease); admin.css and the public site both define them.
   Hover animations run inside .tile, .app-card, .spot, .p-fig, .live (public site) or .glimpse-live (admin). */
.glimpse{display:block; container-type:inline-size; position:relative; width:100%; max-width:100%; aspect-ratio:16/9; background:var(--g-bg); border-radius:8px; overflow:hidden; color:var(--g-text); font-family:var(--sans); line-height:1.2; text-align:left; font-variant-numeric:tabular-nums}
.gx{position:absolute; inset:0; padding:4.2cqw; display:flex; gap:3cqw; font-size:3.4cqw}
:where(.gx) :where(span, i, b){display:block; font-style:normal}
.gx .win{background:var(--g-surface); border:1px solid var(--g-line); border-radius:2.2cqw; padding:3cqw 3.4cqw; display:flex; flex-direction:column; gap:2cqw; min-width:0; flex:1}
.gx .bar{height:1.8cqw; width:var(--w,60%); border-radius:1cqw; background:var(--g-bar); flex:none}
.gx .lbl{font-size:2.8cqw; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--g-muted); white-space:nowrap}
.gx .num{font-size:3.2cqw; white-space:nowrap; color:var(--g-text)}
.gx .rw{display:flex; align-items:center; justify-content:space-between; gap:2.4cqw}
.gx svg{display:block}

.gx.pos .basket{flex:1.5}
.gx.pos .li{display:flex; align-items:center; justify-content:space-between; gap:3cqw; padding-top:1.9cqw; border-top:1px solid var(--g-line); transition:opacity .4s}
.gx.pos .till{flex:1; display:flex; flex-direction:column; justify-content:flex-end; gap:1.4cqw; min-width:0}
.gx.pos .total{font-size:7.6cqw; font-weight:600; letter-spacing:-.02em; color:var(--ink)}
.gx.pos .keys{display:grid; grid-template-columns:repeat(3,1fr); gap:1.2cqw; margin-bottom:.6cqw}
.gx.pos .keys i{height:4.2cqw; border-radius:1cqw; background:var(--g-surface); border:1px solid var(--g-line)}
.gx.pos .pay{height:13cqw; border-radius:2.4cqw; background:var(--accent); color:var(--accent-ink); overflow:hidden; font-weight:600; font-size:4.8cqw}
.gx.pos .pay-stack{transition:transform .5s var(--ease)}
.gx.pos .pay-stack b{height:13cqw; display:flex; align-items:center; justify-content:center; gap:1.4cqw; font-weight:600}
.gx.pos .pay-stack svg{width:4.6cqw; height:4.6cqw}

.gx.portal .claim{font-size:2.8cqw; font-weight:600; border:1px solid var(--accent); color:var(--accent); border-radius:5cqw; padding:.9cqw 2.4cqw; white-space:nowrap}
.gx.portal .ord{display:flex; align-items:center; gap:3cqw; padding-top:1.9cqw; border-top:1px solid var(--g-line)}
.gx.portal .ord .bar{flex:1; width:auto}
.gx.portal .tag{font-size:2.7cqw; font-weight:600; padding:.6cqw 1.9cqw; border-radius:4cqw; background:var(--accent-soft); color:var(--accent); white-space:nowrap}
.gx.portal .tag.mute{background:var(--g-bg); color:var(--g-muted)}
.gx.portal .track{position:relative; height:5.5cqw; margin-inline:1.6cqw}
.gx.portal .track::before{content:""; position:absolute; left:0; right:0; top:50%; height:.7cqw; margin-top:-.35cqw; border-radius:1cqw; background:var(--g-line)}
.gx.portal .fill{position:absolute; left:0; top:50%; height:.7cqw; margin-top:-.35cqw; width:66.6%; border-radius:1cqw; background:var(--accent); transform-origin:left}
.gx.portal .track i{position:absolute; top:50%; width:2.8cqw; height:2.8cqw; margin:-1.4cqw 0 0 -1.4cqw; border-radius:50%; background:var(--g-surface); border:.6cqw solid var(--g-bar)}
.gx.portal .track i.done{background:var(--accent); border-color:var(--accent)}
.gx.portal .track i.now{box-shadow:0 0 0 1.2cqw var(--accent-soft)}
.gx.portal .steplbl{display:flex; justify-content:space-between; font-size:2.5cqw; color:var(--g-muted); margin-top:-1cqw}

.gx.toolkit .q{font-size:3.2cqw; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; padding:2cqw 2.6cqw; background:var(--g-bg); border-radius:1.6cqw}
.gx.toolkit .q .kw{display:inline; color:var(--accent); font-weight:600}
.gx.toolkit .run{font-size:2.8cqw; font-weight:600; background:var(--accent); color:var(--accent-ink); padding:.9cqw 2.8cqw; border-radius:1.4cqw}
.gx.toolkit .r{display:grid; grid-template-columns:17cqw minmax(0,1fr) 13cqw; gap:3cqw; align-items:center; padding-top:1.6cqw; border-top:1px solid var(--g-line)}
.gx.toolkit .r .num:last-child{text-align:right}
.gx.toolkit .r .bar{width:var(--w,70%)}

.gx.documents{background-image:radial-gradient(var(--g-line) .32cqw, transparent .42cqw); background-size:3.2cqw 3.2cqw}
.gx.documents .page{flex:0 0 54%; position:relative; background:var(--g-surface); border:1px solid var(--g-line); border-radius:1cqw; padding:3.2cqw 3.6cqw; display:flex; flex-direction:column; gap:1.9cqw; box-shadow:0 1.2cqw 3cqw -1.6cqw var(--g-shadow)}
.gx.documents .dt{font-size:4.6cqw; font-weight:600; letter-spacing:-.02em; line-height:1; color:var(--ink)}
.gx.documents .slot{position:relative; height:5.2cqw; width:62%; border:1px dashed var(--accent); border-radius:1.2cqw; transition:border-color .3s, background .3s}
.gx.documents .chip{font-size:2.8cqw; font-weight:500; padding:.9cqw 2cqw; border-radius:1.2cqw; background:var(--g-surface); border:1px solid var(--g-line); white-space:nowrap; color:var(--g-text)}
.gx.documents .chip.drag{position:absolute; left:.5cqw; top:.4cqw; z-index:2; background:var(--accent); color:var(--accent-ink); border-color:var(--accent); box-shadow:0 1.6cqw 3cqw -1cqw var(--g-shadow); transform:translate(30cqw,-4.5cqw) rotate(-4deg); transition:transform .6s var(--ease), box-shadow .6s}
.gx.documents .ln{display:flex; justify-content:space-between; gap:3cqw; padding-top:1.5cqw; border-top:1px solid var(--g-line)}
.gx.documents .palette{flex:1; display:flex; flex-direction:column; gap:1.6cqw; padding-top:1cqw; align-items:flex-start; min-width:0}
.gx.documents .chip.empty{border-style:dashed; color:transparent; background:transparent}

.gx.forms .role{display:grid; font-size:2.8cqw; font-weight:600; border-radius:5cqw; padding:.9cqw 2.4cqw; background:var(--accent-soft); color:var(--accent); white-space:nowrap}
.gx.forms .role b{grid-area:1/1; transition:opacity .35s}
.gx.forms .role .rb{opacity:0}
.gx.forms .fields{display:grid; grid-template-columns:1fr 1fr; gap:2.2cqw 3cqw}
.gx.forms .fld{display:flex; flex-direction:column; gap:.9cqw; min-width:0}
.gx.forms .fl{font-size:2.6cqw; color:var(--g-muted); white-space:nowrap}
.gx.forms .inp{position:relative; height:5.4cqw; border:1px solid var(--g-line); border-radius:1.2cqw; display:flex; align-items:center; justify-content:space-between; padding-inline:1.8cqw; overflow:hidden}
.gx.forms .inp .bar{width:var(--w,55%)}
.gx.forms .locked .inp::before{content:""; position:absolute; inset:0; background:repeating-linear-gradient(135deg, var(--g-bg) 0 .9cqw, transparent .9cqw 1.8cqw); transition:opacity .35s}
.gx.forms .lock{position:relative; width:3cqw; height:3cqw; color:var(--accent); margin-left:auto; transition:opacity .3s, transform .3s}
.gx.forms .lock svg{width:100%; height:100%}
.gx.forms .appr{align-self:flex-start; font-size:2.7cqw; font-weight:600; color:var(--g-muted); border:1px solid var(--g-line); border-radius:4cqw; padding:.6cqw 2cqw}

.gx.reports .srcs{flex:0 0 31%; display:flex; flex-direction:column; justify-content:center; gap:5cqw; min-width:0}
.gx.reports .src{background:var(--g-surface); border:1px solid var(--g-line); border-radius:1.8cqw; padding:2.2cqw 2.4cqw; display:flex; flex-direction:column; gap:1.2cqw}
.gx.reports .sn{font-size:3.2cqw; font-weight:600; color:var(--g-text); white-space:nowrap}
.gx.reports .joint{flex:0 0 5cqw; position:relative; margin-inline:-1.5cqw}
.gx.reports .joint::before{content:""; position:absolute; left:0; right:50%; top:31%; bottom:31%; border:.55cqw solid var(--g-bar); border-left:0; border-radius:0 1.6cqw 1.6cqw 0}
.gx.reports .joint::after{content:""; position:absolute; left:50%; right:0; top:50%; border-top:.55cqw solid var(--g-bar)}
.gx.reports .chart{flex:1; justify-content:space-between}
.gx.reports .bars{height:26cqw; display:flex; align-items:flex-end; gap:2.2cqw; border-bottom:1px solid var(--g-line); padding-inline:1cqw}
.gx.reports .bars i{flex:1; height:var(--h); border-radius:.8cqw .8cqw 0 0; background:var(--accent-soft); transform-origin:bottom}
.gx.reports .bars i.hi{background:var(--accent)}
.gx.reports .ax{display:flex; justify-content:space-between; font-size:2.5cqw; color:var(--g-muted); padding-inline:1cqw}

@media (prefers-reduced-motion: no-preference){
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.pos .pay-stack{transform:translateY(-13cqw)}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.pos .li{opacity:.45}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.portal .fill{animation:fillgrow .9s var(--ease)}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.portal .claim{animation:nudge .9s .5s var(--ease)}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.toolkit .r{animation:rowin .5s var(--ease) backwards}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.toolkit .r:nth-of-type(2){animation-delay:.08s}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.toolkit .r:nth-of-type(3){animation-delay:.16s}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.toolkit .r:nth-of-type(4){animation-delay:.24s}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.documents .chip.drag{transform:none; box-shadow:none}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.documents .slot{border-style:solid}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.forms .ra{opacity:0}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.forms .rb{opacity:1}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.forms .locked .inp::before{opacity:0}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.forms .lock{opacity:0; transform:scale(.6)}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.reports .bars i{animation:barup .7s var(--ease) backwards}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.reports .bars i:nth-child(2){animation-delay:.06s}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.reports .bars i:nth-child(3){animation-delay:.12s}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.reports .bars i:nth-child(4){animation-delay:.18s}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.reports .bars i:nth-child(5){animation-delay:.24s}
  :is(.glimpse-live:hover,.glimpse-live:focus-within,.tile:hover,.tile:focus-visible,.app-card:hover,.app-card:focus-visible,.spot:hover,.p-fig:hover,.live) .gx.reports .bars i:nth-child(6){animation-delay:.3s}
}
@keyframes fillgrow{from{transform:scaleX(.5)} to{transform:none}}
@keyframes nudge{0%,100%{transform:none} 40%{transform:scale(1.07)}}
@keyframes rowin{from{opacity:0; transform:translateY(1.5cqw)} to{opacity:1; transform:none}}
@keyframes barup{from{transform:scaleY(0)} to{transform:none}}


/* Undo admin.css rules that share class names with the drawings (admin.css has its own .glimpse .bar, .chip, .bars). */
.glimpse .gx .bar{position:static; inset:auto; display:block; padding:0; border-bottom:0; gap:0}
.glimpse .gx.documents .chip{display:block; gap:0; cursor:default}
.gx.reports .bars{flex-direction:row}
