/* nexus-now.css: "Nexus's day, right now" strip in the real cent account card (#record), Nexus design copy, 17 Nov 2026.
   A band of the card like its others (hairline on top), black, colour only on small marks. The day bar is a bright pink
   window (owner pick A, 17 Nov) on a 24-hour UTC day: in each part, time already gone is solid and time still to come is
   soft. Pink = the breakout window 00:00-16:00 (a pink edge, solid #ff4fd8 while it is open), violet = 16:00-20:45, when a
   breakout trade from the window can still be open (closed by 20:45), then a plain dark track. The dashed 20:45 close mark;
   six 4-hour check dots under the bar, light grey, the next one white ringed in pink; the needle is white with a pink head.
   No glow, no wash.
   Motion: the dot and the next-check mark ping once a minute (3 on arrival), the needle glides in once. Nothing loops.
   Closed (Friday from 20:45, the weekend): grey, no ping. Reduced motion: still. */
.nxn{min-height:298px;padding:18px 24px 20px;border-top:1px solid var(--nl,#1c1c1e)}
.nxn-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:6px 18px;margin:0 0 18px}
.nxn-k{display:flex;align-items:center;gap:10px;margin:0;color:var(--k2,#e6e6ea);font:500 10.5px/1.4 var(--nm);letter-spacing:.14em;text-transform:uppercase}
.nxn-dot{position:relative;flex:none;width:8px;height:8px;border-radius:50%;background:#ff4fd8}
.nxn-dot::after{content:"";position:absolute;inset:0;border:1px solid #ff4fd8;border-radius:50%;opacity:0}
.nxn-clock{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;margin:0}
.nxn-clock time{color:#fff;font:600 18px/1.2 var(--nm);letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap}
.nxn-clock span{color:var(--k4,#9a9a9e);font:500 12px/1.4 var(--nm);white-space:nowrap}

/* the 24-hour UTC day */
.nxn-day{position:relative;overflow:hidden;margin:0 -8px;padding:0 8px}   /* clips the needle's moving box, not the marks */
.nxn-top{position:relative;height:16px;margin-bottom:14px;font:500 10.5px/16px var(--nm);letter-spacing:.06em;white-space:nowrap}
.nxn-lw{position:absolute;left:0;color:#ff8fe6}
.nxn-lc{position:absolute;right:13.542%;margin-right:-1px;padding-right:7px;color:var(--k3,#c9c9cd)}
.nxn-bar{position:relative;height:12px}
.nxn-trk{position:absolute;inset:0;overflow:hidden;border-radius:6px;background:#151518;box-shadow:inset 0 0 0 1px #24242a}
.nxn-trk::before{content:"";position:absolute;top:0;bottom:0;left:66.667%;width:19.791%;background:color-mix(in srgb,#b18cff 30%,#151518)}   /* 16:00-20:45, violet */
.nxn-win{position:absolute;top:0;bottom:0;left:0;width:66.667%;border-radius:6px 0 0 6px;background:color-mix(in srgb,#ff4fd8 32%,#151518);box-shadow:inset 0 0 0 1px color-mix(in srgb,#ff4fd8 72%,#151518)}   /* a crisp pink edge, so the morning (mostly time to come) reads pink, not mauve */
.nxn.off .nxn-win{background:#232327;box-shadow:none}
.nxn.off .nxn-trk::before{background:#1b1b1f}
/* time gone: one layer revealed up to now (solid pink in the open window, then violet, then dark) */
.nxn-fill{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--p,0) * 100%) 0 0);background:linear-gradient(90deg,var(--cw,#ff4fd8) 0 66.667%,color-mix(in srgb,#b18cff 62%,#151518) 0 86.458%,#2a2a2f 0)}
.nxn:not(.open) .nxn-fill{--cw:color-mix(in srgb,#ff4fd8 62%,#151518)}
.nxn.off .nxn-fill{background:rgba(255,255,255,.06)}
.nxn-cut{position:absolute;top:-5px;bottom:-5px;left:86.458%;border-left:1.5px dashed #a6a6ab}
.nxn.off .nxn-cut{border-left-color:#4a4a50}
.nxn-tk{position:absolute;top:calc(100% + 6px);left:calc(var(--h) / 24 * 100%);width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:#c9c9cd}
.nxn-tk.next{top:calc(100% + 5px);width:7px;height:7px;margin-left:-3.5px;background:#fff;box-shadow:0 0 0 2px #ff4fd8}
.nxn-tk.no{background:none;box-shadow:inset 0 0 0 1px #4a4a50}
.nxn-mv{position:absolute;inset:0;transform:translateX(calc(var(--p,0) * 100%));pointer-events:none}
.nxn-now{position:absolute;top:-7px;bottom:-7px;left:0;width:2px;margin-left:-1px;border-radius:1px;background:#fff;box-shadow:0 0 0 1.5px #0b0b0b}
.nxn-now::before{content:"";position:absolute;top:-4px;left:50%;width:8px;height:8px;margin-left:-4px;border-radius:50%;background:#ff4fd8;box-shadow:0 0 0 2px #0b0b0b}
.nxn-hrs{position:relative;height:14px;margin-top:20px;color:var(--k5,#8a8a8f);font:500 10.5px/14px var(--nm);white-space:nowrap}
.nxn-hrs span{position:absolute;left:calc(var(--h) / 24 * 100%);transform:translateX(-50%)}
.nxn-hrs span:first-child{transform:none}
.nxn-hrs span:last-child{transform:translateX(-100%)}

/* the three lines, each with the mark it explains */
.nxn-st{display:grid;gap:8px;margin:18px 0 0;padding:0;list-style:none}
.nxn-st li{display:grid;grid-template-columns:14px minmax(0,1fr);gap:10px;align-items:start;color:var(--k2,#e6e6ea);font-size:13.5px;line-height:1.5}
.nxn-st li>i{position:relative;height:20px}
.nxn-st li[data-k="win"]>i::before{content:"";position:absolute;top:6px;left:0;width:14px;height:8px;border-radius:3px;background:linear-gradient(90deg,#ff4fd8 50%,color-mix(in srgb,#ff4fd8 32%,#151518) 0);box-shadow:inset 0 0 0 1px color-mix(in srgb,#ff4fd8 72%,#151518)}
.nxn-st li[data-k="cut"]>i::before{content:"";position:absolute;top:6px;left:0;width:10px;height:8px;border-radius:3px 0 0 3px;background:color-mix(in srgb,#b18cff 62%,#151518)}
.nxn-st li[data-k="cut"]>i::after{content:"";position:absolute;top:3px;left:11px;height:14px;border-left:1.5px dashed #a6a6ab}
.nxn-st li[data-k="trd"]>i::before{content:"";position:absolute;top:7px;left:3.5px;width:7px;height:7px;border-radius:50%;background:#fff;box-shadow:0 0 0 2px #ff4fd8}
/* the marks rest with the bar: a closed window, a weekend */
.nxn:not(.open) .nxn-st li[data-k="win"]>i::before{background:color-mix(in srgb,#ff4fd8 62%,#151518)}
.nxn.off .nxn-st li[data-k="win"]>i::before{background:#2a2a2f;box-shadow:inset 0 0 0 1px #4a4a50}
.nxn.off .nxn-st li[data-k="trd"]>i::before{background:none;box-shadow:inset 0 0 0 1px #6a6a70}
.nxn.off .nxn-st li[data-k="cut"]>i::before{background:#2a2a2f}
.nxn.off .nxn-st li[data-k="cut"]>i::after{border-left-color:#6a6a70}
/* closed (Friday from 20:45, the weekend): no pink on the dot, needle head or window label, nothing pings */
.nxn.off .nxn-dot{background:#6a6a70}
.nxn.off .nxn-now::before{background:#a6a6ab}
.nxn.off .nxn-lw{color:var(--k4,#9a9a9e)}
.nxn-c{color:var(--k3,#c9c9cd);font:500 12.5px/1.5 var(--nm);font-variant-numeric:tabular-nums;white-space:nowrap}
.nxn-fine{margin:16px 0 0;padding-top:12px;border-top:1px solid var(--nl,#1c1c1e);color:var(--k5,#8a8a8f);font-size:12px;line-height:1.5}

@media (prefers-reduced-motion:no-preference){
  /* time gone is one revealed layer (clip-path), so it glides in with the needle */
  .nxn-mv{transition:transform 1.4s cubic-bezier(.45,0,.25,1)}
  .nxn-fill{transition:clip-path 1.4s cubic-bezier(.45,0,.25,1)}
  .js .nxn:not(.in) .nxn-mv{transform:none}
  .js .nxn:not(.in) .nxn-fill{clip-path:inset(0 100% 0 0)}
  .nxn.snap .nxn-mv,.nxn.snap .nxn-fill{transition:none}
  .nxn.ping .nxn-dot::after,.nxn.ping .nxn-now::before{animation:nxn-ping 1.8s cubic-bezier(.2,.7,.2,1) var(--n,1)}
  .nxn.ping .nxn-now::before{animation-name:nxn-beat}
  .nxn.ping .nxn-tk.next{animation:nxn-tk 1.8s cubic-bezier(.2,.7,.2,1) var(--n,1)}
}
@keyframes nxn-tk{50%{box-shadow:0 0 0 7px rgba(255,79,216,0)}}
@keyframes nxn-ping{0%{opacity:.85;transform:scale(1)}100%{opacity:0;transform:scale(3.2)}}
@keyframes nxn-beat{0%,100%{box-shadow:0 0 0 2px #0b0b0b,0 0 0 2px rgba(255,79,216,.5)}50%{box-shadow:0 0 0 2px #0b0b0b,0 0 0 6px rgba(255,79,216,0)}}

@media (min-width:901px){
  /* wide: the three lines side by side under the bar */
  .nxn{min-height:261px}
  .nxn-st{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 28px}
}
@media (max-width:620px){
  .nxn{min-height:400px;padding:16px}
  .nxn-head{margin-bottom:16px}
  .nxn-clock time{font-size:16px}
  .nxn-st li{font-size:13px}
}
@media (max-width:480px){
  .nxn-hrs span:nth-child(2),.nxn-hrs span:nth-child(4),.nxn-hrs span:nth-child(6){display:none}
}
@media (max-width:360px){
  .nxn{min-height:418px}
}
