/* Decorative workforce interface layer. Figures and statuses remain owned by each page. */
body.os-motion-attendance,
body.os-motion-labour,
body.os-motion-command {
  background:
    radial-gradient(circle at 82% 0%, rgba(45, 185, 224, .11), transparent 30%),
    radial-gradient(circle at 9% 9%, rgba(109, 108, 245, .09), transparent 32%),
    linear-gradient(155deg, #06111d, #081827 56%, #07131f) !important;
}

body.os-motion-attendance .topbar,
body.os-motion-labour .topbar,
body.os-motion-command .topbar {
  border-bottom-color: rgba(109, 214, 239, .18);
}

body.os-motion-attendance .hero,
body.os-motion-labour .hero {
  border: 1px solid rgba(100, 216, 242, .29);
  background:
    radial-gradient(circle at 87% 22%, rgba(29, 159, 199, .19), transparent 34%),
    linear-gradient(125deg, #0a1b2c 8%, #0d2c42 54%, #10233f) !important;
  box-shadow: 0 22px 64px rgba(0, 0, 0, .29), inset 0 1px rgba(174, 243, 255, .11);
}

body.os-motion-attendance .hero::before,
body.os-motion-labour .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(111, 207, 230, .065) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 207, 230, .065) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent 5%, #000 100%);
}

body.os-motion-attendance .hero::after,
body.os-motion-labour .hero::after {
  width: 260px;
  height: 260px;
  top: -165px;
  right: -90px;
  background: rgba(70, 210, 236, .08);
  border: 1px solid rgba(117, 224, 241, .16);
}

body.os-motion-attendance .hero h1,
body.os-motion-labour .hero h1 {
  font-size: clamp(27px, 2.7vw, 38px);
  letter-spacing: -.055em;
  text-shadow: 0 0 35px rgba(108, 229, 247, .17);
}

body.os-motion-attendance .hero .eyebrow,
body.os-motion-labour .hero .eyebrow {
  color: #90e7f1;
  letter-spacing: .22em;
}

body.os-motion-attendance .btn.primary,
body.os-motion-labour .btn.primary {
  background: linear-gradient(115deg, #087b99, #1764ab) !important;
  box-shadow: 0 8px 25px rgba(15, 167, 201, .18);
}

body.os-motion-attendance .btn.primary:hover,
body.os-motion-labour .btn.primary:hover {
  box-shadow: 0 10px 29px rgba(17, 196, 231, .27);
}

body.os-motion-attendance .btn:focus-visible,
body.os-motion-labour .btn:focus-visible,
body.os-motion-command .btn:focus-visible,
body.os-motion-attendance input:focus-visible,
body.os-motion-labour input:focus-visible {
  outline: 2px solid #8be9f6;
  outline-offset: 3px;
}

.os-hero-visual {
  position: relative;
  height: 122px;
  margin-top: 24px;
  border-top: 1px solid rgba(131, 226, 242, .19);
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.os-visual-label {
  position: absolute;
  z-index: 2;
  top: 16px;
  left: 2px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #80d9e9;
  font: 800 9px/1.2 ui-monospace, SFMono-Regular, Consolas, monospace;
  letter-spacing: .19em;
}

.os-visual-label span + span { color: #769db4; font-size: 8px; }

.os-attendance-visual::before {
  content: "";
  position: absolute;
  inset: 18px 0 14px 155px;
  opacity: .75;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(92, 218, 238, .12) 23px, transparent 24px);
}

.os-radar {
  position: absolute;
  right: 5%;
  top: -53px;
  width: 207px;
  aspect-ratio: 1;
  border: 1px solid rgba(100, 222, 244, .45);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(119, 220, 240, .25) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(119, 220, 240, .25) 50%, transparent 50.2%),
    radial-gradient(circle, rgba(77, 223, 238, .2) 0 2px, transparent 3px),
    radial-gradient(circle, transparent 0 23%, rgba(99, 224, 241, .16) 23.4% 24%, transparent 24.5% 46%, rgba(99, 224, 241, .22) 46.5% 47%, transparent 47.5%);
  box-shadow: 0 0 35px rgba(40, 191, 223, .13), inset 0 0 31px rgba(56, 173, 202, .14);
}

.os-radar-sweep {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: conic-gradient(from -90deg, transparent 0deg, transparent 275deg, rgba(81, 224, 236, .02) 300deg, rgba(88, 234, 242, .32) 358deg, transparent 360deg);
  animation: os-radar-turn 12s linear infinite;
}

.os-radar i { display: none; }

.os-visual-trace {
  position: absolute;
  left: 160px;
  right: 25%;
  bottom: 16px;
  display: flex;
  align-items: end;
  gap: 9px;
  height: 49px;
  border-bottom: 1px solid rgba(119, 224, 241, .35);
}
.os-visual-trace b {
  flex: 1;
  height: 2px;
  min-width: 2px;
  background: rgba(106, 237, 246, .75);
  box-shadow: 0 0 11px rgba(63, 209, 232, .25);
  animation: os-trace-breathe 3.6s ease-in-out infinite alternate;
}
.os-visual-trace b:nth-child(3n + 1) { animation-delay: -.7s; }
.os-visual-trace b:nth-child(4n + 2) { animation-delay: -1.9s; }
.os-visual-trace b:nth-child(5n + 3) { animation-delay: -2.8s; }

.os-labour-visual::before {
  content: "";
  position: absolute;
  inset: 22px 0 14px 155px;
  background: repeating-linear-gradient(0deg, transparent 0 21px, rgba(114, 225, 237, .13) 22px, transparent 23px);
}
.os-capacity-field {
  position: absolute;
  inset: 20px 20px 15px 37%;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(155, 223, 239, .25);
  border-bottom: 1px solid rgba(155, 223, 239, .25);
}
.os-capacity-field span {
  flex: 1;
  height: 100%;
  border-left: 1px solid rgba(101, 226, 236, .27);
  background: linear-gradient(90deg, rgba(58, 195, 219, .06), transparent 70%);
  animation: os-capacity-rise 4s ease-in-out infinite alternate;
}
.os-capacity-field span:nth-child(3n + 1) { animation-delay: -2s; }
.os-capacity-field span:nth-child(4n + 2) { animation-delay: -1.1s; }
.os-capacity-field span:nth-child(5n + 3) { animation-delay: -3s; }
.os-capacity-horizon {
  position: absolute;
  left: 35%;
  right: 0;
  top: 53%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(132, 234, 237, .79), transparent);
  box-shadow: 0 0 17px 2px rgba(78, 226, 233, .22);
  animation: os-horizon-glow 4.8s ease-in-out infinite;
}

body.os-motion-attendance .execLead,
body.os-motion-attendance .execCard,
body.os-motion-attendance .kpi,
body.os-motion-attendance .hoursCard,
body.os-motion-labour .execLead,
body.os-motion-labour .execMetric,
body.os-motion-labour .kpi {
  position: relative;
  overflow: hidden;
  border-color: rgba(104, 205, 227, .17);
  background: linear-gradient(145deg, rgba(13, 38, 57, .98), rgba(8, 26, 42, .95));
}
body.os-motion-attendance .execLead::before,
body.os-motion-labour .execLead::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, #4ddce7, rgba(101, 196, 242, .44), transparent);
}
body.os-motion-attendance .card,
body.os-motion-labour .card {
  border-color: rgba(109, 207, 230, .16);
}
body.os-motion-attendance .cardHead,
body.os-motion-labour .cardHead {
  background: linear-gradient(90deg, rgba(19, 64, 86, .28), transparent 80%);
}
body.os-motion-attendance th,
body.os-motion-labour th { color: #a3cfde; }

body.os-motion-command.oraspere-sidebar-page .hero-card {
  background:
    radial-gradient(circle at 87% 28%, rgba(48, 180, 220, .18), transparent 37%),
    linear-gradient(140deg, #0b2033, #122b49 64%, #0a1b34) !important;
  border-color: rgba(101, 214, 239, .28);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .3), inset 0 1px rgba(174, 243, 255, .11);
}
body.os-motion-command .hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(rgba(108, 215, 237, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 215, 237, .05) 1px, transparent 1px);
  background-size: 37px 37px;
  mask-image: linear-gradient(90deg, transparent 20%, #000 100%);
}
body.os-motion-command .hero-card > :not(.os-command-orbit) { position: relative; z-index: 2; }
body.os-motion-command .hero h2 { text-shadow: 0 0 34px rgba(113, 225, 246, .14); }
body.os-motion-command.oraspere-sidebar-page .hero h2 span { color: #82dce9; }
body.os-motion-command.oraspere-sidebar-page .eyebrow { color: #a9ecf4; border-color: rgba(109, 222, 239, .28); background: rgba(54, 181, 212, .12); }
body.os-motion-command.oraspere-sidebar-page .week-strip { border-color: rgba(120, 216, 237, .2); }
body.os-motion-command.oraspere-sidebar-page .week-strip-scan { background: linear-gradient(90deg, transparent, rgba(104, 224, 242, .38), transparent); }
body.os-motion-command.oraspere-sidebar-page .day-cell .day-dot { background: #578da4; box-shadow: 0 0 8px rgba(65, 174, 207, .25); }
body.os-motion-command.oraspere-sidebar-page .day-cell.is-today .day-dot { background: #8b7cff; box-shadow: 0 0 10px rgba(139, 124, 255, .62); }

.os-command-orbit {
  position: absolute;
  z-index: 1;
  width: 280px;
  aspect-ratio: 1;
  right: -37px;
  top: -75px;
  pointer-events: none;
  opacity: .76;
  filter: drop-shadow(0 0 24px rgba(67, 194, 227, .18));
}
.os-command-ring,
.os-command-core,
.os-command-beam { position: absolute; border-radius: 50%; }
.os-command-ring.ring-a { inset: 9%; border: 1px solid rgba(95, 218, 241, .5); box-shadow: inset 0 0 29px rgba(49, 175, 219, .09); animation: os-orbit-turn 23s linear infinite; }
.os-command-ring.ring-a::before,
.os-command-ring.ring-b::before {
  content: "";
  position: absolute;
  top: 9%;
  left: 18%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #91f0f4;
  box-shadow: 0 0 14px 5px rgba(81, 223, 243, .47);
}
.os-command-ring.ring-b { inset: 24%; border: 1px dashed rgba(122, 222, 242, .5); animation: os-orbit-turn 17s linear infinite reverse; }
.os-command-ring.ring-c { inset: 37%; border: 1px solid rgba(130, 226, 241, .46); box-shadow: 0 0 27px rgba(60, 212, 232, .18); }
.os-command-core { inset: 45%; background: #9deef4; box-shadow: 0 0 19px 7px rgba(84, 222, 241, .52); animation: os-node-pulse 3s ease-in-out infinite; }
.os-command-beam { inset: 0; border: 1px solid rgba(121, 225, 241, .2); transform: rotateX(66deg) rotate(-12deg); }

body.os-motion-command.oraspere-sidebar-page .control-panel,
body.os-motion-command.oraspere-sidebar-page .action-card,
body.os-motion-command.oraspere-sidebar-page .status-card {
  border-color: rgba(103, 203, 229, .16);
  background: linear-gradient(145deg, rgba(12, 35, 52, .97), rgba(8, 25, 42, .96));
}
body.os-motion-command.oraspere-sidebar-page .control-panel { position: relative; overflow: hidden; }
body.os-motion-command.oraspere-sidebar-page .control-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, #65ddea, transparent);
  animation: os-horizon-glow 5s ease-in-out infinite;
}
body.os-motion-command.oraspere-sidebar-page .action-card:hover { border-color: rgba(115, 222, 239, .35); }
body.os-motion-command.oraspere-sidebar-page .btn-primary { background: linear-gradient(110deg, #087f9b, #1569b8); }

@keyframes os-radar-turn { to { transform: rotate(360deg); } }
@keyframes os-orbit-turn { to { transform: rotate(360deg); } }
@keyframes os-node-pulse { 50% { opacity: .5; transform: scale(.78); } }
@keyframes os-trace-breathe { to { opacity: .32; } }
@keyframes os-capacity-rise { to { opacity: .4; } }
@keyframes os-horizon-glow { 50% { opacity: .36; } }

@media (max-width: 1000px) {
  .os-visual-trace { right: 33%; }
  .os-capacity-field { left: 43%; }
}
@media (max-width: 650px) {
  .os-hero-visual { height: 97px; margin-top: 18px; }
  .os-visual-label { top: 14px; }
  .os-radar { width: 168px; right: -12px; top: -39px; }
  .os-visual-trace { left: 15px; right: 45%; bottom: 10px; gap: 5px; height: 34px; }
  .os-attendance-visual::before { left: 0; }
  .os-capacity-field { left: 38%; right: 0; gap: 4px; }
  .os-labour-visual::before { left: 0; }
  .os-command-orbit { width: 190px; right: -70px; top: -36px; opacity: .34; }
}
@media (prefers-reduced-motion: reduce) {
  body.os-motion-attendance *, body.os-motion-attendance *::before, body.os-motion-attendance *::after,
  body.os-motion-labour *, body.os-motion-labour *::before, body.os-motion-labour *::after,
  body.os-motion-command *, body.os-motion-command *::before, body.os-motion-command *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
