/* cards-scenario.css — Scenario application + business cards */

/* Scenario — Application parent + Business children */
.sc-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 1280px) {
  .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sc-grid { grid-template-columns: 1fr; }
}
.sc-app {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 1px solid #ececec;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.sc-app.is-new {
  position: relative;
  border-color: #b7ddf7;
  box-shadow: 0 0 0 1px rgba(13, 153, 255, 0.12), 0 8px 20px rgba(13, 153, 255, 0.08);
}
.sc-new {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px; border-radius: 6px;
  background: var(--brand-red, #f24822); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.03em;
  box-shadow: 0 1px 3px rgba(242, 72, 34, 0.35);
}
.sc-app-main { padding: 14px 14px 10px; min-width: 0; }
.sc-app.is-new .sc-app-main { padding-right: 56px; }
.sc-app-top {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 6px;
}
.sc-kicker {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 8px; border-radius: 6px;
  background: #eceaff; color: #6a54f0;
  font-size: 11px; font-weight: 600;
}
.sc-stage {
  display: inline-flex; align-items: center; gap: 6px;
  height: 22px; padding: 0 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600; background: #f4f4f5; color: #666;
}
.sc-stage .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #a3a3a3; flex: 0 0 auto;
}
.sc-stage.is-live { background: #e8f8ef; color: #1f7a45; }
.sc-stage.is-live .dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,0.14); }
.sc-stage.is-ready { background: #eef4ff; color: #3b6fd8; }
.sc-stage.is-ready .dot { background: #3b82f6; }
.sc-stage.is-crafting { background: #fff4e5; color: #b76a00; }
.sc-stage.is-crafting .dot { background: #f59e0b; }
.sc-stage.is-not_started { background: #f4f4f5; color: #777; }
.sc-app-name {
  margin: 0; font-size: 12px; font-weight: 500; letter-spacing: 0; line-height: 16px; color: #111;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-app-desc {
  margin: 4px 0 0; font-size: 11px; font-weight: 400; line-height: 15px; color: #8c8c8c;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 30px;
}
.sc-assets {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-top: 8px;
  min-height: 24px;
}
.sc-asset {
  display: inline-flex; align-items: center; gap: 5px;
  height: 24px; max-height: 24px; padding: 0 8px 0 7px;
  border-radius: 6px; border: 1px solid #e8e8ea; background: #f7f7f8;
  font-size: 10px; line-height: 1; color: #555;
  white-space: nowrap; flex: 0 0 auto; box-sizing: border-box;
}
.sc-asset b { font-weight: 600; color: #333; }
.sc-asset .dot {
  width: 6px; height: 6px; min-width: 6px; min-height: 6px;
  max-width: 6px; max-height: 6px; padding: 0; margin: 0; border: 0;
  border-radius: 50%; background: #c4c4c4; flex: 0 0 auto;
  box-sizing: border-box; display: inline-block;
}
.sc-asset .dot.is-done { background: #22c55e; }
.sc-asset .dot.is-partial { background: #f59e0b; }
.sc-asset .dot.is-empty { background: #d4d4d8; }
.sc-app-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 14px;
  border-top: 1px solid #f2f2f2;
  background: #fafafa;
  flex-shrink: 0;
}
.sc-asset-summary { font-size: 11px; color: #9a9a9a; }
/* App CTA = primary focus (one solid per card). Soft = Live iterate. */
.sc-build {
  height: 28px; padding: 0 12px; border-radius: 8px;
  background: #111; color: #fff; font-size: 12px; font-weight: 600;
  white-space: nowrap; text-align: center; flex-shrink: 0;
  border: 1px solid #111;
}
.sc-build:hover { background: #2a2a2a; border-color: #2a2a2a; }
.sc-build.is-soft {
  background: transparent; color: #444; border-color: #d0d0d0; font-weight: 500;
}
.sc-build.is-soft:hover { background: #f7f7f7; border-color: #bdbdbd; color: #111; }
.sc-children {
  border-top: 1px solid #f0f0f0;
  background: #fafbfc;
  padding: 8px;
  display: flex; flex-direction: column; gap: 5px;
  flex-shrink: 0;
}
.sc-child-label {
  padding: 0 2px; font-size: 11px; font-weight: 600; color: #9a9a9a; letter-spacing: 0.02em;
}
.sc-biz-list { display: flex; flex-direction: column; gap: 5px; }
.sc-biz {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 9px;
  border: 1px solid #ececec;
  border-radius: 8px;
  background: #fff;
  text-align: left;
  min-height: 58px;
  box-sizing: border-box;
}
.sc-biz-name { font-size: 12px; font-weight: 400; line-height: 16px; color: #111; }
.sc-biz-desc {
  margin-top: 2px; font-size: 11px; font-weight: 400; line-height: 15px; color: #8c8c8c;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc-biz-meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.sc-chip {
  height: 18px; padding: 0 6px; border-radius: 999px; background: #f4f4f5;
  font-size: 10px; font-weight: 500; line-height: 18px; color: #666;
}
.sc-chip.pri { background: #eef4ff; color: #3b6fd8; }
.sc-biz-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
/* Biz CTA = secondary always — outline/ghost, never solid black */
.sc-biz-build {
  height: 26px; padding: 0 8px; border-radius: 6px;
  border: 1px solid #d4d4d4; background: transparent; color: #555;
  font-size: 10px; font-weight: 500; white-space: nowrap;
}
.sc-biz-build:hover {
  background: rgba(0, 0, 0, 0.03); border-color: #111; color: #111;
}
.sc-biz.is-extra { display: none; }
.sc-children.is-open .sc-biz.is-extra { display: grid; }
.sc-more {
  height: 28px; width: 100%;
  border: 1px dashed #e0e0e0; border-radius: 8px; background: #fff;
  color: #666; font-size: 11px; font-weight: 600;
}
.sc-more:hover { background: #f7f7f8; color: #111; border-color: #d0d0d0; }
.sc-children.is-open .sc-more { border-style: solid; }
