/* Company console (Console.dc.html): the product view of one coin's company. A top bar, an icon rail,
   the live build map with a legend, a side panel (the agent being followed and the work log the map
   writes) and a status bar of live counters. All of it is a labelled demo. */
.cs {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--surface);
  color: var(--text-2);
}
.cs-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--surface-2);
}
.cs-run {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.cs-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  animation: cs-pulse 1.2s steps(2, end) infinite;
}
@keyframes cs-pulse {
  50% { opacity: 0.25; }
}
.cs-name {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: #fff;
}
.cs-tick {
  color: var(--accent);
}
.cs-chip {
  padding: 4px 10px;
  background: var(--surface-2);
  color: var(--copper-400);
  text-transform: uppercase;
  white-space: nowrap;
  clip-path: var(--px-notch);
}
.cs-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 0 0 0 auto;
}
.cs-meta b {
  font-weight: 400;
  color: #fff;
}

.cs-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
}
@media (min-width: 1024px) {
  .cs-body {
    grid-template-columns: 56px minmax(0, 1fr) 300px;
  }
}
.cs-rail {
  display: none;
}
@media (min-width: 1024px) {
  .cs-rail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    border-right: 1px solid var(--surface-2);
  }
}
.cs-rail > span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  opacity: 0.55;
  clip-path: var(--px-notch);
}
.cs-rail > span.is-on {
  background: var(--surface-2);
  opacity: 1;
}
.cs-stage {
  position: relative;
  height: 380px;
  min-width: 0;
}
@media (min-width: 768px) {
  .cs-stage { height: 460px; }
}
@media (min-width: 1024px) {
  .cs-stage { height: 540px; }
}
.cs-stage > *,
.cs-stage .bv,
.sw-stage .bv {
  position: absolute;
  inset: 0;
  width: auto;
  height: auto;
  min-height: 0;
}
.cs-legend {
  position: absolute;
  inset: auto auto 12px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.cs-legend > span,
.cs-legend > .cs-legend-lm {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0 10px 0 2px;
  background: rgba(11, 10, 9, 0.85);
  color: #fff;
  text-transform: uppercase;
  clip-path: var(--px-notch);
}

.cs-side {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--surface-2);
  min-width: 0;
}
@media (min-width: 1024px) {
  .cs-side {
    border-top: 0;
    border-left: 1px solid var(--surface-2);
  }
}
.cs-label {
  margin: 0;
  color: var(--text-3);
  text-transform: uppercase;
}
.cs-follow {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-bottom: 1px solid var(--surface-2);
}
.cs-follow-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.cs-face {
  display: grid;
  place-items: end center;
  width: 52px;
  height: 52px;
  background: var(--page);
  clip-path: var(--px-notch);
}
.cs-who {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.cs-who b {
  font-weight: 400;
  color: #fff;
}
.cs-doing {
  margin: 0;
  color: var(--copper-400);
}
.cs-jobs {
  margin: 0;
  color: var(--text-3);
  text-transform: uppercase;
}
.cs-log {
  display: grid;
  gap: 12px;
  padding: 16px;
}
.cs-log ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cs-log li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
}
.cs-log time {
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.cs-log li.is-a {
  animation: cs-new-a 0.6s steps(3, end);
}
.cs-log li.is-b {
  animation: cs-new-b 0.6s steps(3, end);
}
.cs-log li.is-me span {
  color: var(--copper-400);
}
@keyframes cs-new-a {
  from { color: var(--accent); }
}
@keyframes cs-new-b {
  from { color: var(--accent); }
}
.cs-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 10px 16px;
  border-top: 1px solid var(--surface-2);
}
.cs-status b {
  font-weight: 400;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .cs-dot,
  .cs-log li.is-a,
  .cs-log li.is-b {
    animation: none;
  }
}

.cs-legend .cs-legend-lm {
  padding: 4px 10px;
  color: var(--copper-300);
}

.cs-run.is-rest .cs-dot {
  background: var(--stone-500);
  animation: none;
}
