/* BenDesk's live miniature: the app in small, with "Count my time" flipping the jobs' colours.
   Used by the home page hero and the Products banner (markup .bd-stage, script bd-preview.js). */
.bd-stage { position: relative; margin: 0; padding: 1.6rem 1.6rem 3.4rem; }
.bd-glow { position: absolute; inset: -4% 0; z-index: 0; pointer-events: none; filter: blur(30px); opacity: 1;
  background: radial-gradient(ellipse 50% 45% at 30% 35%, rgba(34,197,94,.34), transparent 70%),
              radial-gradient(ellipse 50% 50% at 75% 70%, rgba(184,150,90,.34), transparent 70%);
  transition: background 1.2s; }
.bd-stage.timed .bd-glow { background: radial-gradient(ellipse 45% 40% at 30% 35%, rgba(239,68,68,.26), transparent 70%),
              radial-gradient(ellipse 45% 45% at 75% 70%, rgba(245,158,11,.26), transparent 70%); }
.bd-win { position: relative; z-index: 1; display: grid; grid-template-columns: 60px 1fr; font-size: 15px; border-radius: 16px; overflow: hidden;
  background: #0e0e10; border: 1px solid #26262b; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.03);
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.bd-stage:hover .bd-win { transform: perspective(1400px) rotateY(-3deg) rotateX(1deg); }
.bd-rail { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 14px 0; background: #070708; border-right: 1px solid #1d1d21; }
.bd-rail img { width: 30px; height: auto; margin-bottom: 6px; }
.bd-rail i { width: 28px; height: 28px; border-radius: 7px; background: #18181c; }
.bd-rail i.on { background: #2a2a30; box-shadow: -10px 0 0 -7px #37d67a; }
.bd-rail i.last { margin-top: auto; }
.bd-main { padding: 18px 20px 22px; min-width: 0; }
.bd-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .8rem; color: #8b8b93; margin-bottom: 16px; white-space: nowrap; }
.bd-top em { font-style: normal; color: #3f3f46; margin: 0 4px; }
.bd-switch { display: inline-flex; align-items: center; gap: 7px; color: #c9c9cf; font-weight: 600; }
.bd-switch b { position: relative; width: 26px; height: 15px; border-radius: 9px; background: #3f3f46; transition: background .4s; }
.bd-switch b::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; transition: transform .4s; }
.bd-stage.timed .bd-switch b { background: #6a57f5; }
.bd-stage.timed .bd-switch b::after { transform: translateX(11px); }
.bd-sum { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid #222228; border-radius: 12px; background: #131316; margin-bottom: 10px; }
.bd-sum strong { display: block; font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #fff; }
.bd-sum small { font-size: .74rem; color: #8b8b93; }
.bd-dot, .bd-light { width: 12px; height: 12px; border-radius: 50%; flex: none; transition: background .5s, box-shadow .5s; }
.bd-spark { margin-left: auto; display: flex; align-items: flex-end; gap: 5px; height: 44px; }
.bd-spark i { width: 9px; height: var(--h); border-radius: 2px; background: #2c2c33; }
.bd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bd-card { position: relative; padding: 13px 14px 15px; border: 1px solid #222228; border-radius: 11px; background: #131316; transition: border-color .5s; }
.bd-name { display: block; font-size: .74rem; color: #a1a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 14px; }
.bd-card .bd-light { position: absolute; top: 11px; right: 10px; width: 8px; height: 8px; }
.bd-card strong { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: #fff; margin: 6px 0 8px; }
.bd-bar { display: block; height: 4px; border-radius: 3px; background: #26262b; overflow: hidden; }
.bd-bar i { display: block; height: 100%; border-radius: 3px; background: #52525b; transition: width .8s cubic-bezier(.2,.7,.2,1); }
[data-s="g"] .bd-light, .bd-sum[data-s="g"] .bd-dot { background: #22c55e; box-shadow: 0 0 10px rgba(34,197,94,.75); }
[data-s="a"] .bd-light, .bd-sum[data-s="a"] .bd-dot { background: #f59e0b; box-shadow: 0 0 10px rgba(245,158,11,.7); }
[data-s="r"] .bd-light { background: #ef4444; box-shadow: 0 0 10px rgba(239,68,68,.7); }
.bd-card[data-s="r"] { border-color: rgba(239,68,68,.45); }
.bd-float { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px;
  background: rgba(20,20,23,.92); border: 1px solid #2c2c33; backdrop-filter: blur(8px); box-shadow: 0 20px 40px -18px rgba(0,0,0,.9);
  font-size: .86rem; color: #fff; animation: bd-bob 6s ease-in-out infinite; }
.bd-float small { display: block; font-size: .72rem; color: #8b8b93; }
.bd-paid { left: -4%; bottom: 8%; }
.bd-paid .ok { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(34,197,94,.16); color: #4ade80; font-weight: 800; }
.bd-hour { right: -1%; bottom: -1%; flex-direction: column; align-items: flex-start; gap: 0; animation-delay: -3s; }
.bd-hour b { font-size: 1.5rem; letter-spacing: -.03em; color: #b8965a; }
@keyframes bd-bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .bd-float { animation: none; } .bd-win { transition: none; } }
@media (max-width: 1000px) { .bd-win { transform: none; } }
@media (max-width: 600px) {
  .bd-stage { padding: 1.4rem 0 .5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .bd-win { grid-column: 1 / -1; }
  .bd-float { position: relative; left: auto; right: auto; top: auto; bottom: auto; animation: none; padding: 9px 11px; }
  .bd-hour { flex-direction: row; align-items: baseline; flex-wrap: wrap; column-gap: 6px; }
  .bd-hour b { font-size: 1.15rem; }
  .bd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-win { grid-template-columns: 44px 1fr; font-size: 13px; }
  .bd-rail { gap: 9px; } .bd-rail img { width: 24px; } .bd-rail i { width: 22px; height: 22px; }
  .bd-main { padding: 13px 13px 16px; }
  .bd-top > span:first-child { display: none; }
  .bd-top { justify-content: flex-end; }
  .bd-sum strong { font-size: 1.8rem; }
  .bd-card strong { font-size: 1.3rem; }
  .bd-cards .bd-card:last-child { display: none; }
}
