/* hub-next KC Cards — Actor-tab BPaaS mirror · four-stage */
/* Ops = family switch + card map. Workbench = recent/onboard. Inspector = Overview + Actions. */

html[data-kc-cards-tab="1"] .shell-ops {
  background: var(--msp-bg);
  background-image: none;
}

.kc-ops.act-ops.home-deck {
  padding: 16px 18px 28px;
  min-height: 100%;
  overflow: auto;
  background: var(--msp-bg);
}

.kc-ops .act-ops-bar.page-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.kc-ops .act-ops-title h1 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 650;
  color: var(--msp-text);
  letter-spacing: -0.02em;
}
.kc-ops .title-rest {
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--msp-text-3);
}
.kc-ops .act-ops-title .muted {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: var(--msp-text-3);
}
.kc-ops .act-ops-counts {
  display: flex;
  align-items: center;
  gap: 10px;
}
.kc-ops .act-new {
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  padding: 0 16px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: var(--select-execute);
  color: #fff;
  cursor: pointer;
}
.kc-ops .act-new:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.kc-ops .entity-type-block--inline,
.kc-wb .entity-type-block--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--msp-s1);
  box-shadow: inset 0 0 0 1px var(--msp-border);
}
.kc-ops .entity-type-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--msp-text-3);
  margin-right: 4px;
  text-transform: uppercase;
}
.kc-ops .entity-type-chip,
.kc-wb .entity-type-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid var(--msp-border);
  background: var(--card-bg-elevated);
  color: var(--msp-text-2);
  cursor: pointer;
}
.kc-ops .entity-type-chip em {
  font-style: normal;
  opacity: 0.7;
  font-family: var(--msp-mono, ui-monospace, monospace);
  font-size: 10px;
  color: var(--msp-text-3);
}
.kc-ops .entity-type-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--msp-text-3);
  flex-shrink: 0;
}
.kc-ops .entity-type-chip.is-on,
.kc-wb .entity-type-chip.is-on {
  border-color: rgba(59, 130, 246, 0.45);
  background: var(--msp-s3);
  color: var(--msp-text);
  box-shadow: var(--select-view-ring, 0 0 0 1px rgba(59, 130, 246, 0.35));
}
.kc-ops .entity-type-chip.is-on .entity-type-dot {
  background: var(--signal-accent, #38bdf8);
}

.kc-ops .client-card-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  align-items: start;
}

.kc-cosmic.actor-cosmic {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  background: var(--card-bg-elevated);
  box-sizing: border-box;
  border: 2px solid transparent;
  border-radius: 14px;
  box-shadow:
    0 0 0 1px var(--card-border),
    0 8px 24px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 12px 12px 12px 14px;
  color: inherit;
  cursor: pointer;
  font: inherit;
  overflow: hidden;
}
.kc-cosmic.actor-cosmic::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  border-radius: 14px 0 0 14px;
  background: var(--signal-accent, #38bdf8);
}
.kc-cosmic.actor-cosmic:hover {
  background: var(--msp-s3);
}
.kc-cosmic.actor-cosmic.is-active,
.kc-cosmic.actor-cosmic.active {
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: var(--select-view-ring, 0 0 0 1px rgba(59, 130, 246, 0.35)),
    0 8px 24px rgba(0, 0, 0, 0.35);
}
.kc-cosmic .ac-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.kc-cosmic .ac-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.22);
  color: var(--signal-accent, #67e8f9);
  flex-shrink: 0;
}
.kc-cosmic .ac-title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  color: var(--card-title, #f8fafc);
}
.kc-cosmic .ac-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.kc-cosmic .ac-status-led {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--msp-attention-soft, #fcd34d);
  flex-shrink: 0;
}
.kc-cosmic .ac-status-led--ok {
  background: var(--msp-good-soft, #6ee7b7);
}
.kc-cosmic .ac-type-row {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--msp-text-3);
}
.kc-cosmic .ac-legal {
  font-size: 12px;
  line-height: 1.4;
  color: var(--msp-text-2);
}
.kc-cosmic .ac-tag {
  font: 600 10px/1.2 var(--msp-mono, ui-monospace, monospace);
  color: var(--msp-text-3);
  word-break: break-all;
}
.kc-cosmic .kc-card-status {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.kc-ops .act-ph-note,
.kc-wb .act-ph-note {
  margin-top: 14px;
  font-size: 10px;
  color: var(--msp-text-3);
}

.kc-wb.act-wb {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 12px 12px 14px;
  background: var(--msp-bg);
}
.kc-wb .act-wb-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.kc-wb .act-wb-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--msp-text-2);
}
.kc-wb .act-wb-meta {
  font-size: 10px;
  color: var(--msp-text-3);
}
.kc-wb .act-wb-blurb {
  margin: 0 0 8px;
  font-size: 11px;
  color: var(--msp-text-3);
  line-height: 1.35;
}
.kc-wb .act-wb-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kc-wb .act-wb-row {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: 10px;
  row-gap: 2px;
  text-align: left;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: var(--card-bg-elevated);
  box-shadow: 0 0 0 1px var(--card-border), 0 6px 16px rgba(0, 0, 0, 0.28);
  color: inherit;
  cursor: pointer;
  font: inherit;
}
.kc-wb .act-wb-row.is-active {
  box-shadow: var(--select-view-ring, 0 0 0 1px rgba(59, 130, 246, 0.35)),
    0 8px 20px rgba(0, 0, 0, 0.35);
}
.kc-wb .act-wb-day {
  grid-row: 1 / span 3;
  align-self: center;
  justify-self: center;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  color: #93c5fd;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--card-border);
}
.kc-wb .act-wb-kind {
  grid-column: 2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--msp-text-3);
}
.kc-wb .act-wb-title {
  grid-column: 2;
  font-size: 13px;
  font-weight: 650;
  color: var(--card-title, #f8fafc);
}
.kc-wb .act-wb-sub {
  grid-column: 2;
  font-size: 11px;
  color: var(--msp-text-2);
  line-height: 1.35;
  word-break: break-all;
}

.kc-insp .msp-insp-identity--lean {
  padding: 10px 12px 8px;
}
.kc-insp .msp-insp-title {
  margin: 6px 0 2px;
  font-size: 16px;
}
.kc-insp .kc-insp-dl {
  margin: 0;
}
.kc-insp .kc-insp-dl dt {
  font: 700 10px/1.2 system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--msp-text-3);
  margin-top: 10px;
}
.kc-insp .kc-insp-dl dd {
  margin: 2px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--msp-text);
  word-break: break-word;
}
.kc-insp .kc-insp-foot {
  margin: 12px;
  font-size: 11px;
}
.kc-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 0 8px;
}
.kc-act {
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--msp-border);
  background: var(--card-bg-elevated);
  color: var(--msp-text-2);
  cursor: not-allowed;
  opacity: 0.7;
}

@media (max-width: 1100px) {
  .kc-ops .client-card-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}
