/* [project]/SGR-DPZ/apps/sgr/src/app/(workspace)/ws/_ui/ds/motion.css [app-client] (css) */
.sgr-ws {
  --sgr-dur-in: .3s;
  --sgr-dur-step: 35ms;
  --sgr-dur-fade: .2s;
  --sgr-dur-grow: .55s;
  --sgr-dur-ring: 1s;
  --sgr-dur-draw: 1s;
  --sgr-dur-slide: .25s;
  --sgr-dur-pop: .2s;
  --sgr-dur-live: 1.2s;
  --sgr-dur-stamp: .4s;
  --sgr-dur-fan: .5s;
}

@keyframes sgrFade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes sgrGrow {
  from {
    transform: scaleX(0);
  }
}

@keyframes sgrRing {
  from {
    stroke-dashoffset: 176px;
  }
}

@keyframes sgrDraw {
  from {
    stroke-dashoffset: 300px;
  }

  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sgrSlide {
  from {
    opacity: 0;
    transform: translateX(32px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes sgrPop {
  0% {
    opacity: 0;
    transform: scale(.6);
  }

  60% {
    transform: scale(1.08);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes sgrBlink {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .35;
  }
}

.m-in, .m-stagger > *, .sgr-ws tbody > tr {
  animation: sgrIn var(--sgr-dur-in) ease both;
}

.m-stagger > :nth-child(2), .sgr-ws tbody > tr:nth-child(2) {
  animation-delay: calc(var(--sgr-dur-step) * 1);
}

.m-stagger > :nth-child(3), .sgr-ws tbody > tr:nth-child(3) {
  animation-delay: calc(var(--sgr-dur-step) * 2);
}

.m-stagger > :nth-child(4), .sgr-ws tbody > tr:nth-child(4) {
  animation-delay: calc(var(--sgr-dur-step) * 3);
}

.m-stagger > :nth-child(5), .sgr-ws tbody > tr:nth-child(5) {
  animation-delay: calc(var(--sgr-dur-step) * 4);
}

.m-stagger > :nth-child(6), .sgr-ws tbody > tr:nth-child(6) {
  animation-delay: calc(var(--sgr-dur-step) * 5);
}

.m-stagger > :nth-child(n+7), .sgr-ws tbody > tr:nth-child(n+7) {
  animation: none;
}

.m-fade {
  animation: sgrFade var(--sgr-dur-fade) ease both;
}

.m-grow {
  animation: sgrGrow var(--sgr-dur-grow) cubic-bezier(.2, .7, .2, 1) both;
  transform-box: fill-box;
  transform-origin: 0;
}

.m-ring {
  animation: sgrRing var(--sgr-dur-ring) ease both;
}

.m-draw {
  stroke-dasharray: 300;
  animation: sgrDraw var(--sgr-dur-draw) ease both;
}

.m-slide {
  animation: sgrSlide var(--sgr-dur-slide) ease both;
}

.m-pop {
  animation: sgrPop var(--sgr-dur-pop) ease both;
}

.m-live {
  animation: sgrBlink var(--sgr-dur-live) ease-in-out infinite;
}

@keyframes sgrStamp {
  0% {
    opacity: 0;
    transform: perspective(1000px) translateZ(24px) rotate(-12deg);
  }

  70% {
    opacity: 1;
    transform: perspective(1000px) translateZ(-4px) rotate(-3deg);
  }

  100% {
    transform: perspective(1000px) translateZ(0) rotate(var(--sgr-stamp-tilt, -4deg));
    opacity: 1;
  }
}

@keyframes sgrFan {
  from {
    transform: perspective(1000px) translateX(calc(var(--i, 0) * -100%)) rotateY(var(--sgr-fan-tilt, -12deg)) rotate(calc(var(--i, 0) * -2deg));
    opacity: .2;
  }
}

.m-stamp {
  animation: sgrStamp var(--sgr-dur-stamp) cubic-bezier(.3, .6, .2, 1) both;
}

.m-fan > * {
  animation: sgrFan var(--sgr-dur-fan) cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: calc(min(var(--i, 0), 5) * var(--sgr-dur-step));
}

@media print {
  .m-stamp, .m-fan > * {
    animation: none !important;
  }
}

/* [project]/SGR-DPZ/apps/sgr/src/app/(workspace)/ws/_ui/ds/ds.css [app-client] (css) */
.ds-topbar {
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  display: flex;
}

.ds-chip {
  border: 1px solid var(--sgr-line);
  background: var(--sgr-ice);
  min-height: 28px;
  color: var(--sgr-ink);
  white-space: nowrap;
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  font-size: 12px;
  display: inline-flex;
}

.ds-chip:before {
  content: "";
  background: var(--sgr-mute);
  border-radius: 999px;
  width: 7px;
  height: 7px;
}

.ds-chip[data-tone="ok"]:before {
  background: var(--sgr-ok);
}

.ds-chip[data-tone="warn"]:before {
  background: var(--sgr-warn);
}

.ds-chip[data-tone="bad"]:before {
  background: var(--sgr-bad);
}

.ds-chip b {
  font-family: var(--sgr-font-mono, monospace);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.ds-bell {
  border: 1px solid var(--sgr-line);
  background: var(--sgr-paper);
  width: 36px;
  height: 36px;
  color: var(--sgr-ink);
  border-radius: 8px;
  justify-content: center;
  align-items: center;
  display: inline-flex;
  position: relative;
}

.ds-bell:hover {
  background: var(--sgr-ice);
}

.ds-bell .ds-badge {
  background: var(--sgr-bad);
  color: var(--sgr-on-bad);
  position: absolute;
  top: -6px;
  right: -6px;
}

.ds-badge {
  background: var(--sgr-side-act2);
  min-width: 20px;
  height: 18px;
  color: var(--sgr-side-strong);
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  display: inline-flex;
}

.ds-badge[data-need] {
  background: var(--sgr-amber);
  color: var(--sgr-on-amber);
}

.ds-kpi[data-need] {
  border-left: 3px solid var(--sgr-amber);
}

.ds-kpi[data-tone="ok"] b {
  color: var(--sgr-ok);
}

.ds-kpi[data-tone="warn"] b {
  color: var(--sgr-warn);
}

.ds-kpi[data-tone="bad"] b {
  color: var(--sgr-bad);
}

.ds-kpi[data-state="error"] b, .ds-kpi[data-state="empty"] b {
  color: var(--sgr-mute);
}

.ds-kpi .sgr-skel {
  width: 60%;
}

.ds-kpi-row {
  align-items: center;
  gap: 12px;
  display: flex;
}

.ds-bar {
  width: 100%;
  height: 4px;
  margin-top: 4px;
  display: block;
}

.ds-bar .track {
  fill: var(--sgr-line-2);
}

.ds-bar .fill {
  fill: var(--sgr-sky);
}

.ds-bar[data-tone="ok"] .fill {
  fill: var(--sgr-ok);
}

.ds-bar[data-tone="warn"] .fill {
  fill: var(--sgr-warn);
}

.ds-bar[data-tone="bad"] .fill {
  fill: var(--sgr-bad);
}

.ds-meter {
  width: 100%;
  max-width: 160px;
  height: 10px;
  display: block;
}

.ds-meter .track {
  fill: var(--sgr-line-2);
}

.ds-meter .band {
  fill: var(--sgr-ok-bg);
  stroke: var(--sgr-ok);
  stroke-width: .5px;
}

.ds-meter .mark {
  fill: var(--sgr-heading);
}

.ds-meter[data-out] .mark {
  fill: var(--sgr-bad);
}

.ds-ring {
  flex: none;
}

.ds-ring .track {
  stroke: var(--sgr-line-2);
}

.ds-ring .fill {
  stroke: var(--sgr-sky);
  stroke-linecap: round;
}

.ds-ring text {
  fill: var(--sgr-heading);
  font: 600 13px var(--sgr-font-mono, monospace);
}

.ds-spark {
  width: 100%;
  height: 28px;
  display: block;
  overflow: visible;
}

.ds-spark polyline {
  fill: none;
  stroke: var(--sgr-sky);
  stroke-width: 1.8px;
  stroke-linejoin: round;
  stroke-linecap: round;
}

.ds-steps {
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.ds-steps li {
  color: var(--sgr-ink);
  grid-template-columns: 18px 1fr auto;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  display: grid;
}

.ds-steps li[data-step="wait"] {
  color: var(--sgr-mute);
}

.ds-steps .dot {
  border: 1.5px solid var(--sgr-line);
  border-radius: 999px;
  justify-content: center;
  align-items: center;
  width: 16px;
  height: 16px;
  display: inline-flex;
}

.ds-steps li[data-step="done"] .dot {
  border-color: var(--sgr-ok);
  color: var(--sgr-ok);
  background: var(--sgr-ok-bg);
}

.ds-steps li[data-step="run"] .dot {
  border-color: var(--sgr-sky);
  background: var(--sgr-sky);
}

.ds-steps small {
  color: var(--sgr-mute);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
}

.ds-stack {
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.ds-stack li {
  border: 1px solid var(--sgr-line);
  background: var(--sgr-doc);
  min-height: 112px;
  color: var(--sgr-ink);
  overflow-wrap: anywhere;
  box-shadow: 0 1px 0 var(--sgr-line-2);
  border-radius: 4px;
  align-content: start;
  gap: 4px;
  padding: 26px 10px 10px;
  font-size: 12px;
  line-height: 1.35;
  display: grid;
  position: relative;
}

.ds-stack li:after {
  content: "";
  background: linear-gradient(225deg, var(--sgr-bg) 50%, var(--sgr-line) 50%);
  border-bottom-left-radius: 2px;
  width: 14px;
  height: 14px;
  position: absolute;
  top: -1px;
  right: -1px;
}

.ds-stack li:not([data-have]) {
  border-style: dashed;
  border-color: var(--sgr-warn);
  background: var(--sgr-warn-bg);
  color: var(--sgr-warn);
  box-shadow: none;
}

.ds-stack li:not([data-have]):after {
  display: none;
}

.ds-stack small {
  color: var(--sgr-mute);
  font-size: 11px;
}

.ds-stack li:not([data-have]) small {
  color: inherit;
}

.ds-sheet-icon {
  color: var(--sgr-ok);
  display: inline-flex;
  position: absolute;
  top: 6px;
  left: 8px;
}

.ds-stack li:not([data-have]) .ds-sheet-icon {
  color: var(--sgr-warn);
}

.m-fan {
  perspective: 1000px;
}

@media (max-width: 480px) {
  .m-fan > * {
    --sgr-fan-tilt: -6deg;
  }
}

.m-fan > * {
  transform-origin: 0;
  backface-visibility: hidden;
}

.ds-stamp {
  --sgr-stamp-tilt: -4deg;
  border: 3px double var(--sgr-heading);
  color: var(--sgr-heading);
  text-transform: uppercase;
  letter-spacing: .06em;
  transform: rotate(var(--sgr-stamp-tilt));
  border-radius: 8px;
  justify-items: center;
  gap: 2px;
  padding: 8px 16px;
  font-size: 12px;
  display: inline-grid;
}

.ds-stamp b {
  letter-spacing: .1em;
  font-size: 15px;
}

.ds-stamp .sgr-mono {
  text-transform: none;
  letter-spacing: 0;
}

.ds-search {
  border: 1px solid var(--sgr-line);
  background: var(--sgr-paper);
  min-height: 36px;
  color: var(--sgr-mute);
  border-radius: 8px;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  display: inline-flex;
  position: relative;
}

.ds-search:focus-within {
  color: var(--sgr-ink);
}

.ds-search input {
  width: 15rem;
  color: var(--sgr-ink);
  font: inherit;
  background: none;
  border: 0;
  outline: none;
  min-height: 34px;
  font-size: 13px;
}

.ds-search-list {
  z-index: 40;
  border: 1px solid var(--sgr-line);
  background: var(--sgr-paper);
  width: 26rem;
  max-width: 80vw;
  max-height: 60vh;
  box-shadow: var(--sgr-shadow);
  border-radius: 12px;
  padding: 6px;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  overflow: auto;
}

.ds-search-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ds-search-list a {
  color: var(--sgr-ink);
  border-radius: 8px;
  gap: 2px;
  padding: 8px 10px;
  text-decoration: none;
  display: grid;
}

.ds-search-list a:hover, .ds-search-list a:focus-visible {
  background: var(--sgr-ice);
}

.ds-search-list small {
  color: var(--sgr-mute);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  overflow: hidden;
}

.ds-search-list p {
  margin: 8px 10px;
}

.ds-clamp {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  cursor: pointer;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  display: -webkit-box;
  overflow: hidden;
}

.ds-clamp[data-open] {
  -webkit-line-clamp: unset;
  line-clamp: unset;
  display: block;
}

