.rw-strip {
  margin-bottom: 14px;
  padding: 14px 18px;
  border: 1px solid #d9deea;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(43, 54, 105, 0.05);
}

.rw-strip--urgent {
  border-color: #efb8c0;
  background: linear-gradient(180deg, #fff8f9 0%, #fff 56px);
}

.rw-strip--clear {
  padding: 11px 16px;
  border-color: #c8e5d6;
  background: linear-gradient(120deg, #f5fcf8, #fff);
}

.rw-strip--loading,
.rw-strip--error {
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #5d6679;
  font-size: 14px;
}

.rw-strip--error {
  border-color: #efc3a5;
  background: #fff9f2;
  color: #8b5208;
}

.rw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.rw-head-main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  min-width: 0;
}

.rw-badge-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef1ff;
  color: #1a237e;
  font-size: 13.5px;
  font-weight: 800;
}

.rw-role-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #f2f4fa;
  color: #4f5970;
  font-size: 13px;
  font-weight: 650;
}

.rw-count-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fee8eb;
  color: #b82335;
  font-size: 13px;
  font-weight: 800;
}

.rw-count-pill.is-calm {
  background: #e3f5ec;
  color: #13734e;
}

.rw-asof {
  color: #7d8699;
  font-size: 13px;
}

.rw-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.rw-scope-switch {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border: 1px solid #dfe3ee;
  border-radius: 10px;
  background: #f3f5fa;
}

.rw-scope-btn {
  border: 0;
  border-radius: 7px;
  padding: 4px 10px;
  background: transparent;
  color: #60697e;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.rw-scope-btn.is-active {
  background: #1a237e;
  color: #fff;
}

.rw-link-btn {
  border: 1px solid #d7ddef;
  border-radius: 9px;
  padding: 5px 11px;
  background: #fff;
  color: #263697;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.rw-link-btn:hover {
  background: #f4f6fd;
}

.rw-list {
  display: grid;
  gap: 8px;
  margin-top: 11px;
}

.rw-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid #e5e8f2;
  border-radius: 12px;
  background: #fbfcff;
}

.rw-item.is-limit {
  border-color: #f1c0c7;
  background: #fff7f8;
}

.rw-sev {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #fff0d6;
  color: #9c5b00;
  font-size: 12.5px;
  font-weight: 850;
}

.rw-sev.is-high {
  background: #fee6e9;
  color: #c22538;
}

.rw-item-body {
  min-width: 0;
}

.rw-item-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.rw-item-title strong {
  color: #22293a;
  font-size: 14.5px;
}

.rw-duty-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: #eef1ff;
  color: #253699;
  font-size: 12px;
  font-weight: 750;
}

.rw-stage-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: #fff1d6;
  color: #945300;
  font-size: 12px;
  font-weight: 750;
}

.rw-stage-tag.is-done {
  background: #e5f5ec;
  color: #147650;
}

.rw-deadline-tag {
  padding: 2px 7px;
  border-radius: 6px;
  background: #fde4e8;
  color: #b41f32;
  font-size: 12px;
  font-weight: 800;
}

.rw-item-meta {
  margin-top: 3px;
  color: #636c80;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.rw-item-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rw-act-primary {
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  background: #1a237e;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.rw-act-primary:hover {
  background: #283593;
}

.rw-more-bar {
  margin-top: 8px;
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .rw-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .rw-item-actions {
    grid-column: 2;
  }
}
