:root {
  --tpspaces-safe-bottom: env(safe-area-inset-bottom);
}

#tpspaces-app .tpspaces-safe-pad-bottom {
  padding-bottom: calc(7.25rem + var(--tpspaces-safe-bottom, 0px));
}

#tpspaces-app .grid-cols-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

#tpspaces-app [data-post] {
  content-visibility: auto;
  contain-intrinsic-size: 320px;
}

#tpspaces-app [data-modal-card] {
  max-height: calc(100vh - 7rem - var(--tpspaces-safe-bottom, 0px));
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

#tpspaces-app .tpspaces-trend-chip {
  max-width: min(12rem, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#tpspaces-app .tpspaces-inline-favicon {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  vertical-align: text-bottom;
}

#tpspaces-app .tpspaces-hourly-links {
  margin: 0.25rem 0 0;
  padding-left: 1.15rem;
  list-style: disc;
}

#tpspaces-app .tpspaces-hourly-links li {
  margin: 0.25rem 0;
}

#tpspaces-app .tpspaces-hourly-source {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85em;
}

@media (max-width: 640px) {
  #tpspaces-app .backdrop-blur-xl {
    --tw-backdrop-blur: blur(16px);
  }

  #tpspaces-app .blur-3xl {
    --tw-blur: blur(48px);
  }
}

@media (prefers-reduced-motion: reduce) {
  #tpspaces-app .animate-floaty,
  #tpspaces-app .animate-pulseGlow {
    animation: none !important;
  }

  #tpspaces-app .tpspaces-dock-item {
    transition: none !important;
  }

  #tpspaces-app .tpspaces-dock-item:hover {
    transform: none !important;
  }
}

/* Agent canvas modal (card-first flow). */
#tpspaces-app .tpspaces-agent-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr);
  gap: 0.75rem;
}

#tpspaces-app .tpspaces-agent-stage {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
}

#tpspaces-app .tpspaces-agent-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

#tpspaces-app .tpspaces-agent-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  font-size: 11px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  padding: 0.28rem 0.6rem;
}

#tpspaces-app .tpspaces-agent-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

#tpspaces-app .tpspaces-agent-flow-step {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  line-height: 1.1;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  padding: 0.3rem 0.58rem;
}

#tpspaces-app .tpspaces-agent-flow-step.is-done {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.1);
}

#tpspaces-app .tpspaces-agent-flow-step.is-active {
  color: #0a0a0b;
  border-color: transparent;
  background: linear-gradient(135deg, var(--tp-vibe-a), var(--tp-vibe-b));
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

#tpspaces-app .tpspaces-agent-objective {
  border-radius: 0.9rem;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.45;
  padding: 0.55rem 0.65rem;
}

#tpspaces-app .tpspaces-agent-compose-wrap {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.65rem;
}

#tpspaces-app .tpspaces-agent-side {
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  max-height: 74vh;
  overflow: auto;
  padding-right: 2px;
}

#tpspaces-app .tpspaces-agent-card {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 0.65rem;
}

#tpspaces-app .tpspaces-agent-card.is-active {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
}

#tpspaces-app .tpspaces-agent-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.48rem;
  color: rgba(255, 255, 255, 0.95);
  font-size: 13px;
  font-weight: 600;
}

#tpspaces-app .tpspaces-agent-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7rem;
  height: 1.35rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 700;
}

#tpspaces-app .tpspaces-agent-count.is-zero {
  color: rgba(255, 255, 255, 0.62);
}

#tpspaces-app .tpspaces-agent-list {
  margin: 0;
  padding-left: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.42;
}

#tpspaces-app .tpspaces-agent-list-empty {
  list-style: none;
  margin-left: -1rem;
  color: rgba(255, 255, 255, 0.55);
}

#tpspaces-app .tpspaces-agent-next-block {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
}

#tpspaces-app .tpspaces-agent-next-block.is-on {
  display: flex;
}

#tpspaces-app .tpspaces-agent-next-title {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

#tpspaces-app .tpspaces-agent-empty {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.42;
}

@media (max-width: 1024px) {
  #tpspaces-app .tpspaces-agent-canvas {
    grid-template-columns: 1fr;
  }

  #tpspaces-app .tpspaces-agent-side {
    max-height: none;
    overflow: visible;
  }
}

/* Agent chatkit widgets (cards, tables, forms). */
#tpspaces-app .tpspaces-agent-msg-text a {
  color: rgba(255, 255, 255, 0.96);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.35);
  text-underline-offset: 2px;
}

#tpspaces-app .tpspaces-chatkit-wrap {
  margin-top: 0.6rem;
  display: grid;
  gap: 0.55rem;
}

#tpspaces-app .tpspaces-chatkit-widget {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.08), transparent 58%),
    rgba(7, 10, 15, 0.52);
  padding: 0.62rem 0.66rem;
}

#tpspaces-app .tpspaces-chatkit-card-head {
  display: flex;
  flex-direction: column;
  gap: 0.16rem;
  margin-bottom: 0.4rem;
}

#tpspaces-app .tpspaces-chatkit-card-title,
#tpspaces-app .tpspaces-chatkit-table-title,
#tpspaces-app .tpspaces-chatkit-form-title {
  color: rgba(255, 255, 255, 0.96);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
}

#tpspaces-app .tpspaces-chatkit-card-subtitle,
#tpspaces-app .tpspaces-chatkit-table-subtitle,
#tpspaces-app .tpspaces-chatkit-form-subtitle {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.35;
}

#tpspaces-app .tpspaces-chatkit-card-list {
  display: grid;
  gap: 0.4rem;
}

#tpspaces-app .tpspaces-chatkit-card-item {
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.45rem 0.5rem;
}

#tpspaces-app .tpspaces-chatkit-card-item-title {
  color: rgba(255, 255, 255, 0.93);
  font-size: 12px;
  font-weight: 600;
}

#tpspaces-app .tpspaces-chatkit-card-item-value {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.36;
}

#tpspaces-app .tpspaces-chatkit-card-item-meta {
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  line-height: 1.3;
}

#tpspaces-app .tpspaces-chatkit-link {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 2px;
}

#tpspaces-app .tpspaces-chatkit-card-actions {
  margin-top: 0.46rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.36rem;
}

#tpspaces-app .tpspaces-chatkit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.93);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  padding: 0.35rem 0.7rem;
  text-decoration: none;
  transition: transform 0.16s ease, background 0.16s ease;
}

#tpspaces-app .tpspaces-chatkit-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

#tpspaces-app .tpspaces-chatkit-table-wrap {
  margin-top: 0.32rem;
  overflow-x: auto;
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#tpspaces-app .tpspaces-chatkit-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 360px;
}

#tpspaces-app .tpspaces-chatkit-table th,
#tpspaces-app .tpspaces-chatkit-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.42rem 0.5rem;
  text-align: left;
  vertical-align: top;
  font-size: 11px;
  line-height: 1.34;
}

#tpspaces-app .tpspaces-chatkit-table th {
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

#tpspaces-app .tpspaces-chatkit-table td {
  color: rgba(255, 255, 255, 0.84);
}

#tpspaces-app .tpspaces-chatkit-table tbody tr:last-child td {
  border-bottom: 0;
}

#tpspaces-app .tpspaces-chatkit-form-head {
  margin-bottom: 0.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

#tpspaces-app .tpspaces-chatkit-form-grid {
  display: grid;
  gap: 0.4rem;
}

#tpspaces-app .tpspaces-chatkit-form-field {
  display: grid;
  gap: 0.2rem;
}

#tpspaces-app .tpspaces-chatkit-form-field span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  line-height: 1.2;
}

#tpspaces-app .tpspaces-chatkit-form-field input,
#tpspaces-app .tpspaces-chatkit-form-field textarea,
#tpspaces-app .tpspaces-chatkit-form-field select {
  width: 100%;
  border-radius: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.93);
  font-size: 12px;
  line-height: 1.35;
  padding: 0.4rem 0.5rem;
}

#tpspaces-app .tpspaces-chatkit-form-field textarea {
  resize: vertical;
  min-height: 72px;
}

#tpspaces-app .tpspaces-chatkit-form .tpspaces-chatkit-btn {
  margin-top: 0.52rem;
}

@media (max-width: 640px) {
  #tpspaces-app .tpspaces-chatkit-table table {
    min-width: 320px;
  }

  #tpspaces-app .tpspaces-chatkit-widget {
    padding: 0.56rem 0.58rem;
  }
}

/* Space Hive canvas (workflow lane + role cards). */
#tpspaces-app .tpspaces-hive-panel {
  border-color: rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(255, 255, 255, 0.13), transparent 54%),
    radial-gradient(100% 100% at 100% 100%, rgba(255, 255, 255, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.05);
}

#tpspaces-app .tpspaces-hive-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.95fr);
  gap: 0.75rem;
}

#tpspaces-app .tpspaces-hive-main,
#tpspaces-app .tpspaces-hive-side {
  min-width: 0;
}

#tpspaces-app .tpspaces-hive-main {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.75rem;
}

#tpspaces-app .tpspaces-hive-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
}

#tpspaces-app .tpspaces-hive-title-wrap {
  min-width: 0;
}

#tpspaces-app .tpspaces-hive-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

#tpspaces-app .tpspaces-hive-objective {
  margin-top: 0.55rem;
  border-radius: 0.85rem;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  padding: 0.5rem 0.58rem;
  color: rgba(255, 255, 255, 0.87);
  font-size: 12px;
  line-height: 1.42;
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

#tpspaces-app .tpspaces-hive-objective-label {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  letter-spacing: 0.35px;
  text-transform: uppercase;
}

#tpspaces-app .tpspaces-hive-runtime {
  margin-top: 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.95);
  font-size: 12px;
  font-weight: 600;
  padding: 0.33rem 0.62rem;
}

#tpspaces-app .tpspaces-hive-runtime.is-running {
  border-color: rgba(56, 189, 248, 0.44);
  background: rgba(56, 189, 248, 0.18);
}

#tpspaces-app .tpspaces-hive-runtime.is-queued {
  border-color: rgba(253, 186, 116, 0.44);
  background: rgba(253, 186, 116, 0.16);
}

#tpspaces-app .tpspaces-hive-runtime.is-waiting {
  border-color: rgba(192, 132, 252, 0.45);
  background: rgba(192, 132, 252, 0.17);
}

#tpspaces-app .tpspaces-hive-runtime.is-done {
  border-color: rgba(110, 231, 183, 0.45);
  background: rgba(110, 231, 183, 0.16);
}

#tpspaces-app .tpspaces-hive-runtime.is-error {
  border-color: rgba(252, 165, 165, 0.44);
  background: rgba(252, 165, 165, 0.16);
}

#tpspaces-app .tpspaces-hive-progress {
  margin-top: 0.6rem;
  position: relative;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  overflow: hidden;
  height: 1.35rem;
}

#tpspaces-app .tpspaces-hive-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, var(--tp-vibe-a), var(--tp-vibe-b), var(--tp-vibe-c));
  transition: width 320ms ease;
}

#tpspaces-app .tpspaces-hive-progress-label {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  letter-spacing: 0.28px;
  font-weight: 600;
}

#tpspaces-app .tpspaces-hive-lane {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#tpspaces-app .tpspaces-hive-step {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  letter-spacing: 0.35px;
  padding: 0.32rem 0.62rem 0.32rem 0.38rem;
  line-height: 1.1;
}

#tpspaces-app .tpspaces-hive-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.12rem;
  height: 1.12rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-size: 10px;
  font-weight: 700;
}

#tpspaces-app .tpspaces-hive-step-label {
  text-transform: none;
}

#tpspaces-app .tpspaces-hive-step.is-done {
  color: rgba(255, 255, 255, 0.88);
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
}

#tpspaces-app .tpspaces-hive-step.is-active {
  color: #0a0a0b;
  border-color: transparent;
  background: linear-gradient(135deg, var(--tp-vibe-a), var(--tp-vibe-b));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.34);
}

#tpspaces-app .tpspaces-hive-meta {
  margin-top: 0.55rem;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
}

#tpspaces-app .tpspaces-hive-quick-row {
  margin-top: 0.58rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

#tpspaces-app .tpspaces-hive-quick {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 600;
  padding: 0.34rem 0.66rem;
  transition: transform 0.16s ease, background 0.16s ease;
}

#tpspaces-app .tpspaces-hive-quick:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

#tpspaces-app .tpspaces-hive-controls {
  margin-top: 0.65rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

#tpspaces-app .tpspaces-hive-side {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.7rem;
}

#tpspaces-app .tpspaces-hive-side-head {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

#tpspaces-app .tpspaces-hive-role-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

#tpspaces-app .tpspaces-hive-role {
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  padding: 0.55rem 0.6rem;
}

#tpspaces-app .tpspaces-hive-role.is-active {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.11);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

#tpspaces-app .tpspaces-hive-role-title {
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
}

#tpspaces-app .tpspaces-hive-role-sub {
  margin-top: 0.22rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.35;
}

#tpspaces-app .tpspaces-hive-empty {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

#tpspaces-app .tpspaces-hive-tool-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.48rem;
  margin-bottom: 0.4rem;
}

#tpspaces-app .tpspaces-hive-tool {
  border-radius: 0.84rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  padding: 0.48rem 0.55rem;
}

#tpspaces-app .tpspaces-hive-tool.is-on {
  border-color: rgba(110, 231, 183, 0.4);
  background: rgba(110, 231, 183, 0.12);
}

#tpspaces-app .tpspaces-hive-tool.is-off {
  border-color: rgba(255, 255, 255, 0.14);
}

#tpspaces-app .tpspaces-hive-tool-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  font-weight: 600;
}

#tpspaces-app .tpspaces-hive-tool-state {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 10px;
  letter-spacing: 0.25px;
  padding: 0.1rem 0.42rem;
}

#tpspaces-app .tpspaces-hive-tool-sub {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.66);
  font-size: 11px;
  line-height: 1.35;
}

#tpspaces-app .tpspaces-hive-tool-actions {
  margin-top: 0.34rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.34rem;
}

#tpspaces-app .tpspaces-hive-tool-btn {
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border-radius: 0.65rem;
  font-size: 11px;
  font-weight: 600;
  padding: 0.34rem 0.46rem;
}

#tpspaces-app .tpspaces-hive-tool-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

#tpspaces-app .tpspaces-hive-tool-btn.is-primary {
  border-color: rgba(110, 231, 183, 0.45);
  background: rgba(110, 231, 183, 0.22);
  color: rgba(18, 38, 35, 0.95);
}

#tpspaces-app .tpspaces-hive-tool-btn.is-primary:hover {
  background: rgba(110, 231, 183, 0.34);
}

#tpspaces-app .tpspaces-hive-tool-btn[disabled] {
  opacity: 0.52;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
}

#tpspaces-app .tpspaces-hive-tool-note {
  margin-top: -0.1rem;
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  line-height: 1.35;
}

#tpspaces-app .tpspaces-hive-trace-list {
  margin-top: 0.2rem;
  display: grid;
  gap: 0.5rem;
  max-height: 19rem;
  overflow: auto;
  padding-right: 2px;
}

#tpspaces-app .tpspaces-hive-trace {
  border-radius: 0.84rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.045);
  padding: 0.45rem 0.55rem;
}

#tpspaces-app .tpspaces-hive-trace.is-error {
  border-color: rgba(252, 165, 165, 0.44);
  background: rgba(252, 165, 165, 0.12);
}

#tpspaces-app .tpspaces-hive-trace.is-checkpoint {
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(192, 132, 252, 0.12);
}

#tpspaces-app .tpspaces-hive-trace.is-output {
  border-color: rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.12);
}

#tpspaces-app .tpspaces-hive-trace-head {
  display: flex;
  align-items: center;
  gap: 0.34rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

#tpspaces-app .tpspaces-hive-trace-icon {
  font-size: 13px;
}

#tpspaces-app .tpspaces-hive-trace-actor {
  font-weight: 700;
}

#tpspaces-app .tpspaces-hive-trace-when {
  margin-left: auto;
  color: rgba(255, 255, 255, 0.58);
}

#tpspaces-app .tpspaces-hive-trace-summary {
  margin-top: 0.28rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 12px;
  line-height: 1.35;
}

#tpspaces-app .tpspaces-hive-trace-detail {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.67);
  font-size: 11px;
  line-height: 1.35;
}

@media (max-width: 1024px) {
  #tpspaces-app .tpspaces-hive-canvas {
    grid-template-columns: 1fr;
  }

  #tpspaces-app .tpspaces-hive-trace-list {
    max-height: none;
  }
}
