/* /stride/ — element list (left) + STRIDE checklist (right). Flat, square. */

.stride-layout {
  display: grid;
  grid-template-columns: minmax(14rem, 22rem) 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 720px) {
  .stride-layout { grid-template-columns: 1fr; }
}

/* Add-element form */
#add-element-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: end; margin-bottom: 1rem; }
#add-element-form label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; font-weight: 600; }

/* Element list */
#stride-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }

.element-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.5rem 0.6rem;
  border: 1px solid #999;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.element-card:hover { background: #f0f0f0; }
.element-card[aria-current="true"] {
  border-color: #2a3a4a;
  border-left-width: 4px;
  background: #eef3f8;
  font-weight: 600;
}
.element-name { flex: 1; }

/* Kind badges */
.kind-badge {
  display: inline-block;
  padding: 0.05rem 0.45rem;
  border: 1px solid #2a2a2a;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.kind-process   { background: #c8e6c9; color: #1a1a1a; }
.kind-datastore { background: #bbdefb; color: #1a1a1a; }
.kind-dataflow  { background: #fff3bf; color: #1a1a1a; }
.kind-external  { background: #e0e0e0; color: #1a1a1a; }

/* Delete button kept compact inside the card */
.element-card .delete-btn { min-height: 0; min-width: 0; padding: 0.15rem 0.45rem; font-size: 0.8rem; }

/* STRIDE checklist rows */
.stride-row { margin-bottom: 1rem; }
.stride-row h3 { margin: 0 0 0.5rem; }
.status-wrap { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; flex-wrap: wrap; }
.stride-row label { display: block; font-weight: 600; margin-bottom: 0.25rem; }
.stride-row textarea { width: 100%; box-sizing: border-box; min-height: 3.5rem; resize: vertical; }

#stride-detail-empty { color: #555; font-style: italic; }
